Switch to desktop version  
One Error in demo Ping - 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: One Error in demo Ping (/thread-2819.html)



One Error in demo Ping - mickaa - 14-01-2026

Hi, 
A small oversight has crept into the code example:
https://developer.ewon.biz/content/open-tcp-udp-basic



Code:
OPEN "192.168.1.1:23" FOR BINARY OUTPUT AS 1

The good code are:

Code:
OPEN "tcp:192.168.1.1:23" FOR BINARY OUTPUT AS 1
//OPEN "udp:192.168.1.1:23" FOR BINARY OUTPUT AS 1


and this error:

Code:
REM: SEND DATA
REM: Close Socket

by

Code:
REM : SEND DATA
REM : Close Socket