Skip to main content
1-Visitor
Question

Send Wireless AC current sensor values to Thingworx using ESP8266

Hi, I am completely new with thingworx, I am receiving the data from wireless AC current sensor interface with Esp8266. I 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.

4 replies

16-Pearl

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

Translate
DERBY761-VisitorAuthor
1-Visitor

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?

Translate
16-Pearl

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

Translate