SensEsp data to signalK server

225 views
Skip to first unread message

Stig Anton Nielsen

unread,
Dec 21, 2020, 1:36:49 PM12/21/20
to Signal K
An ESP8266 is flashed with an example (hardcoded SSID and PW) and I see it connects to local WIFI.
I have my laptop installed with SignalK on the same WIFI. 

I believe I need to specify the address to the server in the firmware for the ESP8266, does that make sense?   I am using this line of code for the firmware: 

SensESPApp.set_sk_server(String "http://«192.38.138.230»:«80»/signalk", uint16_t 80); 

but it gives me an error .. probably a trivial ting, but I would very much appreciate help :) 

Thanks

William Fleenor

unread,
Dec 21, 2020, 4:34:06 PM12/21/20
to Signal K
I would suggest you read the instructions at:

It would appear you are using the Builder object, but that isn't fully apparent.  It would look something like this:
   // Create a builder object
  SensESPAppBuilder builder;

  // Create the global SensESPApp() object.
  sensesp_app = builder.set_hostname("PortGrayWater")
                    ->set_sk_server("192.168.1.20", 3000)
                    ->set_wifi("Your_SSID", "Your_Password")
                    ->set_standard_sensors()
                    ->get_app();

You might also refer to several of the examples provided on the SensESP site.
Reply all
Reply to author
Forward
0 new messages