"Error -303"

12 Ansichten (letzte 30 Tage)
noone Me
noone Me am 14 Apr. 2021
Kommentiert: noone Me am 14 Apr. 2021
Hello to all,
I am a beginner but I can't solve my problem here is the code:
the one always returns me an error -303 and I can't find it
thank you very much for helping me
String json = ThingSpeak.readRaw(THINGSPEAK_REGISTRY_CHANNEL_NUMBER, String("/feeds/?results=8000"), THINGSPEAK_REGISTRY_API_KEY);
int statusCode = ThingSpeak.getLastReadStatus();

Akzeptierte Antwort

Christopher Stapels
Christopher Stapels am 14 Apr. 2021
-303 is unable to parse resonse, which you can see in the library github.
8000 records seems like a lot of data for a device to parse. Can you explain why you need this meany records on teh device? We would reccomend writing a MATLAB script to write the answer you are calculating to a derived channel and reas fewer values from the derived channel to your device.
If you read fewer records, does the command still fail? Can you try the call from a web browser or postman and see what the results are?
  1 Kommentar
noone Me
noone Me am 14 Apr. 2021
Thanks for answering my call for help :)
As I said, I am a beginner and to answer your question: no, my channel has only 1 record and has 3 fields => field1 = Address , field2 = ID (channel) , field3 = API KEY
the content of these fields, I entered manually
I changed the code :
String json = ThingSpeak.readRaw(THINGSPEAK_REGISTRY_CHANNEL_NUMBER, String("/feeds/?results=1"), THINGSPEAK_REGISTRY_API_KEY);
int statusCode = ThingSpeak.getLastReadStatus();
but this does not change anything, I still have => statuscode = -303
thank you again
pS : sorry for my english ....

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Communitys

Weitere Antworten in  ThingSpeak Community

Kategorien

Mehr zu Read Data from Channel finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by