Hello,
I have an Ewon flexy 205 with an io extention card. For testing i have an io test card.
I want to read the values from the digital input, but I can’t find how to do this in java.
On the developers page for java is a document calledt eWON Java I/O Server interface. In this document a class IoTestServer has been created, but it doesn’t explain on how to use the class.
I want to read the value that is on the digital input as a bool. I found a way to do this in basic, but all my code is already written in java and I didn’t find a way to use self written basic routines in java.
The basic code that I found is from this post.
DoSwitch: If (Switch@=1) Then rem Open Internet connection Setsys COM,"load" Setsys COM,"WANCnx","2" Setsys COM,"WANPermCnx","1" Setsys COM,"save" Print Time$;" Connection opened" else rem Close Internet connection Setsys COM,"load" Setsys COM,"WANCnx","0" Setsys COM,"save" Print Time$;" Connection closed" endif
Can someone explain on how to do this? Or link me to an explanation?