B4J Question UniPI and Rexygen API

besoft

Active Member
Licensed User
Longtime User
How to use it in B4J ?

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
 

besoft

Active Member
Licensed User
Longtime User
I tried it and it's true. So there is no problem here. I do not have to figure out why the 20.00 value is not written through the API to the controller.
I have no idea what else to try.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…