Please Log in or Create an account to join the conversation.
lesjaw wrote:
Dennis wrote: i think you should try to read the dht22/11 a few times before sending data, because the first read sometimes gives garbage. But im just guessing here...
regards
yes but thats another case, because already get the right data to send..
the problem is sending the data to EasyIoT server.. i already make 2 POST into the right folder..but only one got executed/updated by EasyIoT server
DHT11Esp.ino: In function 'void loop()':
DHT11Esp.ino:104:14: error: redeclaration of 'WiFiClient client'
DHT11Esp.ino:68:14: error: 'WiFiClient client' previously declared here
Please Log in or Create an account to join the conversation.
Dennis wrote: Exactly. You can use this method (server sending request to sensor) with arduino ide as well, see for example
iot-playground.com/2-uncategorised/40-es...y-switch-arduino-ide
(although it needs be modified for dht11, but same principle of connection and response applies)
regards
Please Log in or Create an account to join the conversation.
lesjaw wrote:
Dennis wrote: Exactly. You can use this method (server sending request to sensor) with arduino ide as well, see for example
iot-playground.com/2-uncategorised/40-es...y-switch-arduino-ide
(although it needs be modified for dht11, but same principle of connection and response applies)
regards
yes, already take look of that code too..thats what i post on prievous page..
dennis, is there any chance to make 2 WiFi client in a loop..
example liket this..
WiFiClient client
POST bla bla
WiFiClient client.close
WifiClient client
POST bla bla
WiFiClient client.close
is it possible?
client.print(String("POST ") + urlh + " HTTP/1.1\r\n" +
"Host: " + String(host) + "\r\n" +
"Connection: close\r\n" +
"Authorization: Basic " + unameenc + " \r\n" +
"Content-Length: 0\r\n" +
"\r\n");
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.