CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Thu Jan 17, 2019 7:35 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 18 posts ]  Go to page Previous 1 2
Author Message
 Post subject: Re: MQTT
PostPosted: Mon Jan 07, 2019 1:52 pm 
Offline

Joined: Thu Aug 25, 2016 7:42 am
Posts: 2
For being complete newbie to codesys and programming. I just cant get this to work.

I have local broker running in raspberry and it works with examble within library.

But I just cant understand that how I proceed with this.

Waiting for tutorial for idiots...

Im trying to use this library to communicate with domoticz so that I can control my lights from domoticz.

Codesys raspberry controls lights thru beckhoff ethercat io.


Top
   
 Post subject: Re: MQTT
PostPosted: Wed Jan 09, 2019 1:59 pm 
Offline

Joined: Mon Nov 23, 2015 10:59 am
Posts: 7
Hi,

Here a snippet of my Domoticz Mqtt program.

I use my own Mqtt client.

This project include some controls for Domoticz like Lamp, Dimmer, Lux, Pir, Blinds, ..
These are oop, not really for idiots or newbie but maybe you can use it.

Groetjes Ton.


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: MQTT
PostPosted: Wed Jan 09, 2019 8:07 pm 
Offline

Joined: Thu Aug 25, 2016 7:42 am
Posts: 2
Thanx, I have a look of that.

Actually after hours of banging my head against the wall, I managed to get this working, problem is that library uses string(255) variable for incoming messages and domoticzs messages are longer.

Filthy getaway was to parse messages in nodered first and handle rest of the messages in codesys. There should be way to control what domoticz sends in mqtt messages...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 18 posts ]  Go to page Previous 1 2

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited