2 way feedback ??

Forum to ask for any help
Post Reply
asimp11
Posts: 30
Joined: Fri Oct 19, 2012 1:00 pm

2 way feedback ??

Post by asimp11 » Fri Mar 10, 2017 8:47 pm

I am using an 8 way relay IP unit as below.
There is no problem controlling it from Demopad, it uses http: command line eg. (send data to a website) Http://192.168.1.4/30000/01 will open relay 1, if you change the last two digits to 02 it will close that relay. The unit always sends feedback after each command, however I cannot set it up as a device, it will not connect !!

https://www.sainsmart.com/sainsmart-rj4 ... rated.html

User avatar
DemoPad
Site Admin
Posts: 634
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: 2 way feedback ??

Post by DemoPad » Wed Mar 15, 2017 11:23 am

Ok - so if your 'send data to website' command was :

http://192.168.1.4/30000/01

then your device should have IP address 192.168.1.4, port 80, and the command should be:

GET /3000/01 HTTP/1.0\x0D\x0A

(assuming it accepts http 1.0 requests)

Post Reply