Closed saintofinternet closed 1 year ago
Hi @saintofinternet ,
Could you try to use ThingsBoard library from Library Manager (Or use Thingsboard.cpp and Thingsboard.h after build). and try to use this example.
@imbeacon I think this issue can be closed, the user directly uses the PubSubClient to publish messages himself instead of using the given library functions. Furthermore they send data without even establishing a device on ThingsBoard with an Access Token or another authentication method.
The following is my code to read a Soil Sensor value from Analog pin and send it to the locally hosted Thingsboard on a Raspberry Pi using MQTT
Somehow the code compiles and runs successfully in the Visual Studio Code Terminal but I am unable to receive data in the Thingsboard portal.
Am I going wrong anywhere??
****CODE START**
****CODE END**
The output in the VS Code terminal window is shown below...