Has anyone implemented this on the system?
j
RESTful Transfer
- jhudson649
- Posts: 1
- Joined: 01 Mar 2019, 01:11
Jeff Hudson
Electrical/Controls Engr
Bazell Technologies
Electrical/Controls Engr
Bazell Technologies
- RevPiModIO
- KUNBUS
- Posts: 335
- Joined: 20 Jan 2017, 08:44
- Contact:
What do you mean?
Do you want to read the IOs via a GET and set IOs via a POST?
For example:
and
This would be very simple with Python and RevPiModIO. I could try to write an example code, if this is what you mean
Regards, Sven
Do you want to read the IOs via a GET and set IOs via a POST?
For example:
Code: Select all
GET http://revpi.local/api/
> {
"ioname1": iovalue,
"ioname2": iovalue2
}
Code: Select all
POST http://revpi.local/api/
< {
"ioname2": newvalue2
}
> {
"success": true
}
Regards, Sven
python3-RevPiModIO - https://revpimodio.org/ || Der RevPi ist das Beste, was passieren konnte!