WTA : nodeMCU DHT11/22 send to EasyIoT server

5 years 6 months ago #1526 by cdj
I know... i'm using dht22 ! but i remember that when i test dht11 it respond me with 3 digits....boh, pheraps i remember wrong values....

Please Log in or Create an account to join the conversation.

5 years 6 months ago - 5 years 6 months ago #1529 by Dennis
Replied by Dennis on topic "404 Not Found" error

ArneiO wrote: What am I doing wrong when I get a "404 Not Found" error?

POST data to URL: /Api/EasyIoT/Control/Module/Virtual/N9S0/ControlLevel/25.0
HTTP/1.1 404 Not Found
Server: HttpGateway
Date: Thu, 14 May 2015 11:57:47 GMT
Content-Length: 0
Connection: close


http error code 404 means url not found, usually you've got the URL wrong (is it really N9SO or N9S0, etc). Besides, the server shouldn't respond with "httpgateway" but with "microsoft http api" or something alike...

@Dario, my dht11 also gives always xx.0 reading so thatsnot a real float value, it is an integer with,0 appended B)

regards
The following user(s) said Thank You: ArneiO

Please Log in or Create an account to join the conversation.

5 years 6 months ago - 5 years 6 months ago #1532 by ArneiO
Replied by ArneiO on topic "404 Not Found" error
I have double and triple checked... :-/ The sketch lesjaw says works here above gives also Error 404.
The node names are correct, with digits where there should be digits.
I think there might be an error on the server side.
Is HttpGateway wrong answer also from a Raspberry Pi?

I'm a little lost here I must confess.

Please Log in or Create an account to join the conversation.

5 years 6 months ago - 5 years 6 months ago #1533 by Dennis
Replied by Dennis on topic "404 Not Found" error
can you test the url in your browser? just add http://[ip-address:port] to the beginning of your url, and you should either get an authentication popup or 302 access denied error...

edit - whoops didnt think about the fact this is a POSTrequest - on this case you can use the chrome add-in Postman for example, to send post request

edit2 - can you browse to the easyIoT server website?

Please Log in or Create an account to join the conversation.

5 years 6 months ago #1534 by ArneiO
Replied by ArneiO on topic "404 Not Found" error

Dennis wrote: can you test the url in your browser? just add http://[ip-address:port] to the beginning of your url, and you should either get an authentication popup or 302 access denied error...

Nothing happens. Blank screen. No error message.

Dennis wrote: edit - whoops didnt think about the fact this is a POSTrequest - on this case you can use the chrome add-in Postman for example, to send post request

Thank you for that tip - I will check it out.

Dennis wrote: edit2 - can you browse to the easyIoT server website?

The server website works fine, except no values from this sensor arrives.

Please Log in or Create an account to join the conversation.

5 years 6 months ago #1535 by Dennis
Replied by Dennis on topic "404 Not Found" error
which easyIoT server version are you running? In another thread i just read that part of the http api is only included since 0.8x release, maybe thats the problem?

regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.302 seconds

Forum latest

  • No posts to display.