Shop OBEX P1 Docs P2 Docs Learn Events
Spin code for Parallax WX ESP8266 WiFi Module? — Parallax Forums

Spin code for Parallax WX ESP8266 WiFi Module?

I'm looking at Parallax WX ESP8266 WiFi Module code examples and seeing only PBASIC and C. Is there really no Spin support for this device?

Comments

  • VonSzarvasVonSzarvas Posts: 3,450
    edited 2018-05-11 18:44
    Don't know off-hand about other solutions, but I've been using FullDuplexSerial from Spin.

    For example, this snippet joins a network:
    OBJ
    wificom : "FullDuplexSerial" 
    
    wificom.start(WX_DO,WX_DI,0,115200) ' rxpin, txpin, mode, baudrate
    wificom.rxflush   ' Clear RX buffer
    wificom.str(string($FE,"JOIN:"))
    wificom.str(@ssid)
    wificom.str(string(","))
    wificom.str(@pass)
    wificom.str(string(13,10))
    
    


  • mparkmpark Posts: 1,305
    Well, dang, is it just that simple? Thanks!
  • Yeah!

    And just to check... you've found the API document ?

    All the serial commands are detailed there.

    From memory, you might want to set either DO or DI low for a few milliseconds, to toggle the ESP module between serial command mode and transparent mode. The API describes that too.

    https://www.parallax.com/downloads/parallax-wx-wi-fi-module-firmware-guide
  • mparkmpark Posts: 1,305
    Yup, thanks. My order is supposed to arrive tomorrow. Wish me luck!
  • VonSzarvas wrote: »
    Yeah!

    And just to check... you've found the API document ?

    All the serial commands are detailed there.

    From memory, you might want to set either DO or DI low for a few milliseconds, to toggle the ESP module between serial command mode and transparent mode. The API describes that too.

    https://www.parallax.com/downloads/parallax-wx-wi-fi-module-firmware-guide

    I've heard that there is a new way to add Wi-Fi connectivity, is this true?
    Is it listed in this guide?
  • Can't say if it's true without knowing what you've heard.

    Could you share a link and/or explain "what you've heard" ?
Sign In or Register to comment.