Develop your own client protocol based on TCP or UDP

eWON can publish its Tag through Modbus TCP or SNMP protocols natively.
However, the BASIC Scripting can be used to develop your own client protocol based on TCP or UDP protocol

OPEN "192.168.1.1:23" FOR BINARY OUTPUT AS 1
WaitConnect:
	B$ = GET 1
	IF (B$="#CLOSED#") THEN
		GOTO WaitConnect  
	ENDIF
	
	REM: SEND DATA
	PUT 1,"ECHO"
	t% = GETSYS PRG,"MSEC"
	GOTO WaitForResponse
END

WaitForResponse:
	REM : Wait 100 ms before reading
	s% = GETSYS PRG,"MSEC"
	IF s% > t% + 100 THEN
		A$ = GET 1,100
		PRINT A$
	ELSE
		GOTO WaitForResponse
	ENDIF

	REM: Close Socket
	CLOSE 1
END