Enter forum description here ...
0

Communication between two Jigsaw

Kristián Vojčík 7 years ago in Devices / Basic updated by isaac Afolabi 7 years ago 3

Hello. In last webinar I ask if you can communicate over TCP between two Jigsaw. I got answear about how, but how I separate similar data like lights or temperatures or something like that. Maybe working example will be great if you have time for that. Thanks.

0

Serial device regex

Rait Lotamõis 7 years ago in Devices / Basic updated 7 years ago 6

Hello,


I'm toying around with the Basic Serial device and having fun. Sending data is working without a hitch but reading is another matter.


When I'm trying to read data using regex, then instead of saving the regex capture group as the value, the entire data string or nothing, is stored as the Value.


For instance, this is what is coming in to the Serial port: 1;3;1;0;0;21.3

I'm interested in the last floating point number (21.3)

I have created 2 devices for reading data. One is a Double, the other is a String. Both are using this regex: 1;3;1;0;0;([\d+.\d+]*)


This is what the Double gets as a Value: 0

This is what the String gets as a Value: 1;3;1;0;0;21.3