Home / FactoryTalk Optix / Optix for Edge

Description
Now you can send data to an external MQTT broker directly from the Datalogger in FactoryTalk Optix 1.7! Let’s use HiveMQ serverless cloud MQTT broker free account for testing. Then retrieve the data from your mobile phone with an MQTT client application like IoT OnOff.

Download the sample code from here:
https://github.com/xavierflorensa/FT_Optix_Datalogger_2_MQTT

Contributed by Xavier Florensa – YouTube – LinkedIn – GitHub


Transcript
(00:01) Hi everyone. In this video, I will show you how to use factory talk optics, the data logger to send MQTT data to a MQTT broker and then subscribe with an MQTT client as a mobile phone to retrieve this data. Here we have two variables, one shine wave and another random variable. Here at the right on the mobile phone screen, we can see with this IoT on off MQTT client application this signals.
(00:45) So let’s see how to do this. We will be using um hyphenq broker in the cloud. So you have your tenant here and the port. You can also check later on with not red but let’s focus on MQTT and optics application now. So let’s take a look at the optics application. So here we have the variables that will change according to net logic and then you have um data logger.
(01:38) Okay, here in the data log you have two variables to record and the data store. It’s an embedded database. Then you can use an MQTT client pointing to this broker address, the same you have in the tenant in HMQ. And then in the well you have to use username and password and the topic you will use here topic will be optics okay and you will use data logger.
(02:30) So as soon as as you get data it will be sent automatically one per second. to the broker. Okay. And this is how it works. And I guess you enjoy. Let me project this again. Yeah. Here we have our application again. So thank you very much. See you in next video.