Hi Gabriel,
Thanks for your input.
I am using following code:
#include <Sodaq_WifiBee.h>
----- in the middle of the code ----
wifiBee.init(BeeSerial, BEE_VCC, BEEDTR, BEECTS, 1024);
wifiBee.connectionSettings(SSID, "", PASSWORD);
uint16_t code = 0;
wifiBee.HTTPGet("www.validsite.com/iot/index.asp", 80, "/?iotdata=" + code, "", code);
I am getting following message:
NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
lua: cannot open init.lua
wifi.setmode(wifi.STATION)
wifi.sta.config(“UPC637985”,“xxxxxxxx”)
wifi.sta.connect()
print("|" … “STS|” … wifi.sta.status() … “|”)
|STS|1|
print("|" … “STS|” … wifi.sta.status() … “|”)
|STS|1|
print("|" … “STS|” … wifi.sta.status() … “|”)
|STS|5|
Success: IP received
wifiConn=net.createConnection(net.TCP, false)
wifiConn:on(“connection”, function(s) print("|C|") end)
wifiConn:on(“reconnection”, function(s) print("|RC|") end)
wifiConn:on(“disconnection”, function(s) print("|DC|") end)
wifiConn:on(“sent”, function(s) print("|DS|") end)
wifiConn:on(“receive”, function(s, d) lastData=d print("|DR|") end)
wifiConn:connect(80,“www.validsite.com/iot/index.asp”)
DNS retry 1!
DNS retry 2!
DNS retry 3!
DNS retry 4!
DNS Fail!
Where should I look further ?
Perhaps a small working example might help …
thanks,
Regards,
Barani !