Barco API - OL Series
Glitch
Posts: 6
Does anyone have any code examples for using the Barco API http Post commands?
I have tried sending different variations of the following:
SEND_STRING dvSocket,"'POST /ol/wall/1,1/actions HTTP/1.0',13,10"
SEND_STRING dvSocket,"'Content-Length: 57',13,10"
SEND_STRING dvSocket,"13,10"
SEND_STRING dvSocket,"'{"action":{"name":"switchOn"}}',13,10"
SEND_STRING dvSocket,"13,10"
I have tried sending different variations of the following:
SEND_STRING dvSocket,"'POST /ol/wall/1,1/actions HTTP/1.0',13,10"
SEND_STRING dvSocket,"'Content-Length: 57',13,10"
SEND_STRING dvSocket,"13,10"
SEND_STRING dvSocket,"'{"action":{"name":"switchOn"}}',13,10"
SEND_STRING dvSocket,"13,10"
0
Comments
Sets de string together
CALL EXAMPLE:
CALL 'Barco_OL_Series_1_TX_Gateway' ("
'POST /ol/wall/',ITOA(nCol),',',ITOA(nRow),'/actions HTTP/1.0',$0D,$0A,
'Content-Length: 134',$0D,$0A,
'Content-Type: application/json',$0D,$0A,
$0D,$0A,
'{ "action" : {"name" : "switchOn"} }',$0D,$0A,
$0D,$0A")