Can't write data to channel via REST API on Arduino

4 次查看(过去 30 天)
I explain, under an alternative internet, I can send information without any problem from the Arduino to ThingSpeak, but when I connect to the network of my work (Ministry of Housing and Urbanization of Chile), it fails to send the applications, or I think it sends them but it is not able to receive answers .. In some occasions it does not solve the DNS, or in others, it resolves them, but it throws error 401 Unauthorized.
So, I need to know what exactly the problem is, in order to send a ticket to those who are responsible for modifying the network here.
To be more exact, I use an ENC28J60 module
I would appreciate any help, if more information is missing just ask me, thank you and have a good day.

回答(1 个)

Vinod
Vinod 2020-1-28
If the same code works to send data to ThingSpeak from an embedded device on one network but not on another, it almost certainly is a network configuration issue.
You will need to contact your network administrator and ask if they have any DNS blocking enabled (this will prevent DNS resolution of api.thingspeak.com), or a captive portal that any device joining the network needs to "sign in" to, or some such configuration that makes the Internet unreachable. Unfortunately, there is not much we can say from the ThingSpeak end as your requests are probably not making it outside your network.

社区

更多回答在  ThingSpeak Community

类别

Help CenterFile Exchange 中查找有关 Write Data to Channel 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by