API functionality
 
Notifications
Clear all

API functionality

4 Posts
2 Users
1 Reactions
25.9 K Views
 OnPa
(@onpa)
New Member
Joined: 3 years 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 3 years ago 2 times by OnPa

   
Quote
Topic Tags
(@gabor-auth)
Member
Joined: 4 years 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)
New Member
Joined: 3 years ago
Posts: 3
Topic starter  

Thanks Gábor,

it was my mistake....


   
Gábor AUTH reacted
ReplyQuote
(@gabor-auth)
Member
Joined: 4 years ago
Posts: 15
 

I'm glad to hear it working! 🙂

If there is any problem, we will help! 🙂


   
ReplyQuote
Share: