Only first digit is showing in the fields. | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Only first digit is showing in the fields.
No permission to create posts
August 14, 2019
6:52 pm
Avatar
hananorlov
New Member
Members
Forum Posts: 1
Member Since:
August 14, 2019
sp_UserOfflineSmall Offline

Hello.

I am new to Thingspeak, and to Arduino Shield Sim900.

I try to write, for example "65" ,but only the "6" digit is showing in field.
Never mind if I write "65" or put 65 in a variable, and try to write the variable.

Here is the code:

SIM900.print("api_key=???????????");
SIM900.print("9IG4H&field1=");
SIM900.println(humi);

humi is a variable that equals to 65.

I also tried this code:

SIM900.print("api_key=???????????");
SIM900.print("?????&field1=");
SIM900.println(65);

And this code:

SIM900.println("api_key=????????????????&field1=65");

My channel is here:

https://thingspeak.com/channels/844835/

Thank you.

August 16, 2019
3:25 pm
Avatar
Vinod

MathWorks
Members
Forum Posts: 341
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline

I'd recommend taking a look at the examples here: https://github.com/mathworks/thingspeak-arduino and running those examples to isolate which piece is actually the problem. Based on your description, this is likely something to do with the SIM900 shield and how it treats the decimal point. To confirm this, change decimal numbers from 9.2 to 9,2, for example and see if that shows up in your channel. That will require you to download the data in the channel using the button on the "data import/export" tab of the channel.

Let us know what you find. It will likely help others who may be using a SIM900 shield.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online: cstapels
23 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

Team_mafia, icXu, emorphistechno, VTVMART, manimozhi, adamhebrew

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457