timeout on thingSpeakRead, no data read

Hello,
since some time a script is not working anymore, it is timing out. I could track down the problem to thingSpeakRead. I am reading some data to be visualized by this:
[loc_comp, timeStamps] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'ReadKey', readAPIKey, DateRange=[(datetime - days(1)), datetime]);
It was working this way approx. until April and then I ignored it first. Now I'd like to use that visualization again but can't it get it to work. If I replace the channel read by some fixed test data everything else is running as before. Just the channel read is not working ...
channel id, field number and read key have not changed...
Any ideas? The Timeout=xx parameter did not help as well ...
Thanks,
Jürgen
Edit:
i also tried e.g.
[loc_comp, timeStamps] = thingSpeakRead(123456, Fields=[6], ReadKey='MySecretKey', NumPoints=15, Timeout=60);
with the same timeout error appearing ..

5 comentarios

Vinod
Vinod el 3 de Jun. de 2024
What is the channelID you're reading from using thingSpeakRead?
Jürgen Zick
Jürgen Zick el 3 de Jun. de 2024
the channelID is 2104094 ...
Have you tried
[loc_comp, timeStamps] = thingSpeakRead(2104094, Fields=[6], ReadKey='MySecretKey', NumPoints=15);
in MATLAB Online? Before execution, remember to change the
'MySecretKey'
If that works, perhaps you can tell me more about the version of MATLAB you're using and if you are using a VPN or Proxy to access the internet from your computer?
Juergen Zick
Juergen Zick el 4 de Jun. de 2024
Hi there,
I found some time to test my script under Mathlab R2022a (probably I should update ;-) ). My script is running 100% ok there, but not anymore directly under thingspeak ... Why???
Vinod
Vinod el 4 de Jun. de 2024
I think there is something else going on. Perhaps comment out all other lines and evaluate just the thingSpeakRead. If that works fine, there is some other line causing your script to error.

Iniciar sesión para comentar.

Respuestas (0)

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre Prepare and Analyze Data en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 2 de Jun. de 2024

Comentada:

el 4 de Jun. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by