I am trying to send MPU9250 sensor data to Pubnub IOT platform using node mcu, but not able to do it since the sensor data is not in JSON format. I know about publishing string but don't know about variable.
About Pubnub Library - https://github.com/pubnub/arduino
This is the part which I need help in:-
IMU.readSensor(); PubNonSubClient *pclient = PubNub.publish(pubchannel, IMU.getAccelX_mss());
But above line has error so how do i send imu sensor data to pubnub? All connections are right and sensor is working since I tested it.