How to use it in B4J ?
I know how to do this with jShell, I'm interested in how to correctly use HttpJob to use all the parameters.
THX
B4X:
# Values to be written
value_double=17.89
# URLs of the data points
url_double="http://192.168.1.100:8008/api/tasks/rest_api_task/CNR_IN:ycn"
# Credentials
user="admin"
password="mypasswd"
echo -e "\nWriting data type double ... "
curl -d "{\"v\":$value_double}" -u "$user:$password" -H "Content-Type: application/json" -X POST $url_double
I know how to do this with jShell, I'm interested in how to correctly use HttpJob to use all the parameters.
THX