API functionality
 
Notifications
Clear all

API functionality


OnPa
 OnPa
(@onpa)
New Member
Joined: 2 weeks ago
Posts: 3
Topic starter  

Hi,

I'm trying example with sending data from ESP32 to IoTguru, unfortunately I'm receiving error with DNS resolving API address...

Do you know, what is wrong ?

Example - https://github.com/IoTGuruLive/theiotguru-arduino-library/blob/master/examples/02_send_measurement/02_send_measurement.ino

1050009: {sendHttpValue(nodeKey, fieldName, value):223} - ENTRY
1050009: {sendHttpValue(nodeKey, fieldName, value):225} - Send request to the cloud
[E][WiFiGeneric.cpp:739] hostByName(): DNS Failed for api.iotguru.live
1050017: {sendHttpValue(nodeKey, fieldName, value):234} - Response received from the cloud (status code -1)
1050026: {sendHttpValue(nodeKey, fieldName, value):236} - EXIT

Thanks,

Ondrej

This topic was modified 2 weeks ago 2 times by OnPa

Quote
Topic Tags
Gábor AUTH
(@gabor-auth)
Active Member Moderator
Joined: 12 months ago
Posts: 15
 
Hi,
Posted by: @onpa

[E][WiFiGeneric.cpp:739] hostByName(): DNS Failed for api.iotguru.live
1050017: {sendHttpValue(nodeKey, fieldName, value):234} - Response received from the cloud (status code -1)

It looks like a DNS issue on your side, your network cannot resolve the `api.iotguru.live` domain name to an IP address.


ReplyQuote
OnPa
 OnPa
(@onpa)
New Member
Joined: 2 weeks ago
Posts: 3
Topic starter  

Thanks Gábor,

it was my mistake....


ReplyQuote
Gábor AUTH
(@gabor-auth)
Active Member Moderator
Joined: 12 months ago
Posts: 15
 

I'm glad to hear it working! 🙂

If there is any problem, we will help! 🙂


ReplyQuote
Share: