03-13-2023, 03:49 AM
(This post was last modified: 03-13-2023, 03:56 AM by jfementira.)
I'm using KC868-H16.
How to run tcp send and receive command using php?
How to run tcp send and receive command using php?
KC868-H16 TCP PHP sample code
|
03-13-2023, 03:49 AM
(This post was last modified: 03-13-2023, 03:56 AM by jfementira.)
I'm using KC868-H16.
How to run tcp send and receive command using php?
03-13-2023, 04:35 AM
see this guide about PHP tcp socket connection code:
https://www.php.net/manual/en/function.s...onnect.php
03-13-2023, 04:52 AM
(03-13-2023, 04:35 AM)admin Wrote: see this guide about PHP tcp socket connection code: So it is just a string to send to the server/device? Sample: PHP Code: $message = 'RELAY-SET-255,1,0';
03-13-2023, 06:19 AM
yes, very easy.
$message = 'RELAY-SET-255,1,1'; //turn on relay1 $message = 'RELAY-SET-255,1,0'; //turn off relay1
03-13-2023, 10:51 AM
03-13-2023, 11:01 AM
ok, thanks, test with first controller. good luck.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: |
1 Guest(s) |