Skip to main content
1-Visitor
December 20, 2018
Question

Send Wireless AC current sensor values to Thingworx using ESP8266

  • December 20, 2018
  • 1 reply
  • 2585 views

Hi, I am completely new with thingworx, I am receiving the data from wireless AC current sensor interface with Esp8266I am displaying the data in a local web server using HTTP client.

I want to send the data via MQTT to thingworx and perform data analytics.

Getting started with this do I have to install any MQTT broker?

Suggestions on this will be a great help.

1 reply

16-Pearl
December 20, 2018

Hi @DERBY76

ThingWorx doesn't come with it's own MQTT broker, but is acting as a MQTT Client.

Usually in my setups I use Mosquitto https://mosquitto.org/ and the MQTT Extension from the PTC Marketplace https://marketplace.ptc.com/apps/193516/mq-telemetry-transport-mqtt#!overview

 

I'm not sure if this here is helpful for you:

https://community.ptc.com/t5/IoT-Tech-Tips/ThingBerry-connecting-a-ESP8266-module-with-a-DHT-11-sensor-via/m-p/534342

It was quite fun to build it 🙂

 

Cheers,

Michael

DERBY761-VisitorAuthor
1-Visitor
December 21, 2018

Hey, thanks for the advice but the link about ThingBerry, Are they using MQTT broker or MQTT client in this? Is there any procedure which helps to create the topic name in thingworx?

16-Pearl
December 21, 2018

It's using mosquitto as MQTT broker.

The ESP8266 connects as a client and sends data.

ThingWorx connects as a client and gets the data from the broker.

 

In ThingWorx the topic is mapped to a particular property value in the Configuration of the Thing based on the MQTT-Template, i.e. (property) name = temperature; topic = ESP_xx/temp