SINTEF-9012 / JArduino

Program your Arduino in Java
https://github.com/SINTEF-9012/JArduino/wiki
177 stars 63 forks source link

initialize jArduino in firmware with specific baud - not supported #56

Closed lobsteroh closed 8 years ago

lobsteroh commented 8 years ago

recommendation for supporting higher baud rate in firmware is via ...

void setup() {
_JArduino.init_JArduino(115200);
}

unfortunately uploading this to arduino produces with compile from source gives ...

exit status 1
no matching function for call to 'JArduino::init_JArduino(long int)'
brice-morin commented 8 years ago

OK, I guess we should change the signature of that method so that it can take a long int as parameter

lobsteroh commented 8 years ago

ok, in the firmware i try ...

void setup() {
    uint16_t baud = 9600;
    _JArduino.init_JArduino(baud);
}

and that works, but how to pass in the baud rate from jArduino?