i used these two options below
--generic=serial,in,30,\\.\COM3,4800,controltest
--generic=serial,out,30,\\.\COM3,4800,controltest
and this is the sketch i used
- Code: Select all
#define P 2
void setup() {
pinMode(P, INPUT_PULLUP);
Serial.begin(4800);
}
void loop() {
Serial.println(digitalRead(P));
}
Down here's the protocol
- Code: Select all
<?xml version="1.0"?>
<PropertyList>
<generic>
<input>
<line_separator>\n</line_separator>
<var_separator>,</var_separator>
<chunk>
<name>brake</name>
<type>double</type>
<node>/controls/gear/brake-parking</node>
</chunk>
</input>
</generic>
</PropertyList>
I tried to do this project months ago and it didn't work, i also tried to format the pc but the problem persists, please i need help