How write decimal values in channel fields using MQTT client | General | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.
Avatar

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
How write decimal values in channel fields using MQTT client
No permission to create posts
December 15, 2020
12:40 pm
Avatar
edolis
New Member
Members
Forum Posts: 2
Member Since:
December 15, 2020
sp_UserOfflineSmall Offline

Hello everybody,
I am getting lost trying to update numbers with decimals to a Channel using a MQTT client.
I am trying to follow the directios found here https://it.mathworks.com/help/thingspeak/use-desktop-mqtt-client-to-publish-to-a-channel.html

sending a string like
field1=4.1&field2=10.11&field3=11.5
but values are not loaded (I read thet null values are pushed in the fields
created_at":"2020-12-15T17:28:27Z","entry_id":3,"field1":null,"field2":null,"field3":null
)
How loading of single/gloat values can be accomplished? Confused
Should I multiply the values and truncate them and then reprocess them in thingspeak?

I apologize, but I am a new user and I am still struggling to get things
Your help relly appreciated.

December 15, 2020
1:00 pm
Avatar
edolis
New Member
Members
Forum Posts: 2
Member Since:
December 15, 2020
sp_UserOfflineSmall Offline

Never mind, sorry...
I realized I had a mistake in my code.

Apologies.

December 16, 2020
6:04 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 885
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Thanks for the update. Float values work fine, as I hope you now see.

I recommend the mail publish doc page if you get stuck again.

FYI, MATLAB answers is the preferred location for ThingSpeak Community support.

This forum will be ending soon.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
16 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:

kusmumichael, petersmith99, Rambant, blakeharriss09, optisol, Niyonzima Fils

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457