9 years, 1 month ago.

Serial Even Parity setting

bump for this question https://developer.mbed.org/questions/86/Serial-Even-Parity-setting/?c=20215

I have the same problem, and I can't get it fixed. I tried to bump the other question, but it didn't work. Can someone give me the code for this: format(8bits, even parity, 1 stopbit)?

Thanks

1 Answer

9 years, 1 month ago.

According to the mbed source code you will find the enum definitions in SerialBase.h:

So this should work:

serialport.format(8, SerialBase::Even, 1);

Accepted Answer

Thanks

posted by Swedgin . 27 Oct 2015