Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTTP GET api control
#1
after i turn on a output, then turn it back off, it wont turn on again, unless i wait for several minutes.

here is the commands i use:

ipaddress/ctrl.cgi?secret=mysecret&cmd=set_output&id=1&value=1
ipaddress/ctrl.cgi?secret=mysecret&cmd=set_output&id=1&value=0

the browser gives a message saying success, but the output does not come on.

here is example of output (but does not turn on)

{ "id": 1, "value": 1, "status": "success", "code": 0 }

i have program that runs that needs to be able to execute these commands very often and close together
Reply
#2
take a photo , how you wire with your board. maybe you have not connect the B16M's "DC" terminal with power supply.
Reply
#3
Please see below


it is correct and works first time i send command

here is the commands i use: 
ipaddress/ctrl.cgi?secret=mysecret&cmd=set_output&id=1&value=1 
ipaddress/ctrl.cgi?secret=mysecret&cmd=set_output&id=1&value=0 

when i send command to turn on second time,
the browser gives a message saying success, but the output does not come on. 
here is example of output (but does not turn on) { "id": 1, "value": 1, "status": "success", "code": 0 }
Reply
#4
RESOLVED,

sorry for the post, i wrote a sample html page
that turns on and off the output-1,

Runs fine from html script, but would not repeat when i manually ran the commands from browser address bar.....

STRANGE
Reply
#5
ok
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)