logo elektroda
logo elektroda
X
logo elektroda

DCC++ ESP8266-01 - Incorrect SSID network name after code compilation

domin122 951 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17015574
    domin122
    Level 16  
    Hello All.
    I have built a DCC++ Control Panel on Arduino to operate H0 scale railways and more. I then found a project to operate it via ESP8266-01. How to upload the code to the ESP here: http://trainelectronics.com/WiFi-esp8266/Setup/
    The necessary library for the ESP here: https://github.com/Links2004/arduinoWebSockets
    Throttle operation of the trains is via the website:
    https://github.com/indev2/DCCpp-WebSocket/tree/master/indexDCC%2B%2B
    Just open indexDCC.html which connects to the ESP8266-01 and this sends data via RX, TX to the control panel. On the page above is the code for the ESP: DCCppWebsocketServer.ino
    The ESP broadcasts the ssid of the network and this is where the problem arises, namely the code compiles correctly and uploads too, but the network name does not match the one in the code. Obviously the site does not want to connect to the network ip. To my mind it's the library's fault, but I can't figure out what's wrong.
    If anyone would care to take a look at this and at least hint where to look for this fault I would be more than usually grateful and probably more. I have written to the author of the ESP code Dave Bodnar but so far no reply at all.
    Best regards to all.
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 17015747
    inot
    Level 37  
    Have you changed the ?
    File DCCpp-WebSocket / indexDCC++ / DCCppWebsocketServer.ino
    const char* ssid     = "Your SSID"; 
    const char* password = "Your Password"; 
    
    .
  • #3 17017994
    domin122
    Level 16  
    Yes, I have been modifying. In my opinion, something is wrong with the library - the project was done over a year ago, and the library was modified 4 months ago. There was a change on the forum that the project only works with that library at that time. The author of the project -Dave Bodnar wrote me back that he did this project so long ago that he doesn't remember anything anymore, he doesn't have an old copy of the library or anything. I asked about the bin from ESP, but also nothing - strange thing - the project is more than a year old, it worked and died for lack of support.

    EDIT.
    I uploaded another project and it works fine - so the board is good. I own the black 1M one. Interestingly when I uploaded back the DCCppWebsocketServer.ino it would broadcast the network from the previous project when I restarted the ESP8266-01.

    EDIT 2.
    I found a newer project made from the higher one. It supposedly works with the same website as the one above and is new. Link to the repository:
    https://github.com/atanisoft/BaseStation
    Here the code for ESP compiles and uploads using PlatformIO.
    It's even worse with this version, namely - it compiles correctly and uploads too, but ESP doesn't even broadcast any network, so I don't know what's going on.
    Page for project description here:
    http://www.trainboard.com/highball/index.php?threads/dcc-basestation-with-wifi-esp.102984/
ADVERTISEMENT