Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. ESP8266 to act as a gateway between two PCs to transfer the data

ESP8266 to act as a gateway between two PCs to transfer the data

Scheduled Pinned Locked Moved Development
2 Posts 2 Posters 798 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kishor
    wrote on last edited by mfalkvidd
    #1

    I am new to arduino and to ESP module, my task is to make ESP8266 to act as Gateway for the communication between two devices. so when I transfer a data, it need to be transferred through the gateway to the other PC. I installed arduino and installed Mysensors library in it.I am using esp8266 gateway example, while compiling it is showing the error

    Arduino: 1.8.7 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 9600"
    
    Build options changed, rebuilding all
    In file included from C:\Users\kishor.babu\Documents\Arduino\libraries\MySensors/MySensors.h:420:0,
    
                     from C:\Users\kishor.babu\Documents\Arduino\libraries\MySensors\examples\GatewayESP8266\GatewayESP8266.ino:118:
    
    C:\Users\kishor.babu\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:57:53: error: declaration of C function 'void ets_update_cpu_frequency(int)' conflicts with
    
     extern "C" void ets_update_cpu_frequency(int freqmhz);
    
                                                         ^
    
    In file included from C:\Users\kishor.babu\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,
    
                     from C:\Users\kishor.babu\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256,
    
                     from sketch\GatewayESP8266.ino.cpp:1:
    
    C:\Users\kishor.babu\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include/ets_sys.h:218:6: error: previous declaration 'void ets_update_cpu_frequency(uint32_t)' here
    
     void ets_update_cpu_frequency(uint32_t ticks_per_us);
    
          ^
    
    exit status 1
    Error compiling for board Generic ESP8266 Module.
    
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    
    mfalkviddM 1 Reply Last reply
    0
    • K kishor

      I am new to arduino and to ESP module, my task is to make ESP8266 to act as Gateway for the communication between two devices. so when I transfer a data, it need to be transferred through the gateway to the other PC. I installed arduino and installed Mysensors library in it.I am using esp8266 gateway example, while compiling it is showing the error

      Arduino: 1.8.7 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 9600"
      
      Build options changed, rebuilding all
      In file included from C:\Users\kishor.babu\Documents\Arduino\libraries\MySensors/MySensors.h:420:0,
      
                       from C:\Users\kishor.babu\Documents\Arduino\libraries\MySensors\examples\GatewayESP8266\GatewayESP8266.ino:118:
      
      C:\Users\kishor.babu\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:57:53: error: declaration of C function 'void ets_update_cpu_frequency(int)' conflicts with
      
       extern "C" void ets_update_cpu_frequency(int freqmhz);
      
                                                           ^
      
      In file included from C:\Users\kishor.babu\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,
      
                       from C:\Users\kishor.babu\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256,
      
                       from sketch\GatewayESP8266.ino.cpp:1:
      
      C:\Users\kishor.babu\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include/ets_sys.h:218:6: error: previous declaration 'void ets_update_cpu_frequency(uint32_t)' here
      
       void ets_update_cpu_frequency(uint32_t ticks_per_us);
      
            ^
      
      exit status 1
      Error compiling for board Generic ESP8266 Module.
      
      This report would have more information with
      "Show verbose output during compilation"
      option enabled in File -> Preferences.
      
      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      Hi @kishor, welcome to the forum!

      These threads might be of interest:
      https://forum.mysensors.org/post/92175
      https://forum.mysensors.org/post/93564
      https://forum.mysensors.org/post/93113
      https://forum.mysensors.org/post/90990
      https://forum.mysensors.org/post/92610

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      18

      Online

      11.7k

      Users

      11.2k

      Topics

      113.0k

      Posts


      Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular