Socket connection ..

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
mactoolz
Posts: 49
Joined: 16 Jun 2015 18:55

Socket connection ..

Post by mactoolz » 19 Jun 2015 11:18

Hi,

it is possible to build a socket connection?

thx

Mactoolz

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Socket connection ..

Post by Martin » 22 Jun 2015 19:53

Hi,

This is currently not possible. You can use action HTTP Request and trigger HTTP Request to communicate between multiple devices running Automagic within the same network but I'm not sure if this helps.
What kind of data would you like to transfer with a socket connection? What's the app on the other side of the connection?

Regards,
MArtin

mactoolz
Posts: 49
Joined: 16 Jun 2015 18:55

Re: Socket connection ..

Post by mactoolz » 23 Jun 2015 11:29

Hi,

i want connect to my PLC and read some data.
The PLC can a tcp server/client socket port open.

I want convert the data into a widgete in automagic !!!


MacToolz

mactoolz
Posts: 49
Joined: 16 Jun 2015 18:55

Re: Socket connection ..

Post by mactoolz » 05 Jul 2015 11:48

Hi,

???

Thx

Mactoolz

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Socket connection ..

Post by Martin » 05 Jul 2015 13:34

Hi,

I'll add it to the list of features under consideration but I can not promise anything.

It might be possible to do it with this plugin (untested by me):
Send/Expect

Regards,
Martin

mactoolz
Posts: 49
Joined: 16 Jun 2015 18:55

Re: Socket connection ..

Post by mactoolz » 06 Jul 2015 13:41

Hi,

great, that is ever a very good start. Can you tell me how I can put my since receiving data
and also can transmit the transmission data.

MacToolz

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Socket connection ..

Post by Martin » 06 Jul 2015 19:01

Sorry, I don't understand your question. Can you rephrase your question?
I've never used the Send/Expect plugin so I have no idea how it needs to be configured.

mactoolz
Posts: 49
Joined: 16 Jun 2015 18:55

Re: Socket connection ..

Post by mactoolz » 07 Jul 2015 06:36

Hi,

the app works. I can send and receive data.
The received data I want to store in the automagic in a variable and then process them. The send / expect app log shows the data in bytes / hex.
This app acts like a socket connection. Now I just need to know how to process the return value from SockReceive.

I do not generally like me to deal with the plugins.
How and how do I know which methods or properties I can use or rather implemented.


Thx

MacToolz

mactoolz
Posts: 49
Joined: 16 Jun 2015 18:55

Re: Socket connection ..

Post by mactoolz » 08 Jul 2015 10:33

push it on top :-)


MacToolz

Locked