Switch to desktop version  
MQTT Message Receive - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: MQTT Message Receive (/thread-556.html)



MQTT Message Receive - Padsc - 23-03-2018

Hey,
I'm testing MQTT protocol in eWon using BASIC, its working and its a great addition. 
Now i want to know if BASIC as some function 'split' because when i receive a new message in eWon the string format would be "TAG:VALUE" and i want to split it to do the following:

array = string.split("TAG:VALUE", ":")
tag = array[0]
tag@ = array[1]

if its not possible i'm open to other suggestions about doing this.
Thanks


RE: MQTT Message Receive - simon - 23-03-2018

Hi,

No there is no split fonction in Basic but check that : https://techforum.ewon.biz/thread-418.html


RE: MQTT Message Receive - Padsc - 26-03-2018

Thanks i will try it.