Open MarkGhanz opened 10 months ago
It has been quite some time since I've looked at this library! I haven't fully diagnosed the problem but in looking at the current code I see:
https://github.com/mchr3k/arduino-libs-manchester/blob/master/Manchester.h#L143C5-L143C60
This is taking a uint8_t although the comment says otherwise.
Some of the interior methods seem to indicate that they can/will support 16 bit sending as well although none of that matters if the transmit and getMessage methods are returning uint8_t. :)
I have an ATTiny85 connected to an 315MHz transmitter and an Arduino Uno connected to an 315MHz receiver. I tried to send a number 511 (2^9 - 1, or 0b111111111 in binary) but the number received by Arduino is always 255, or 0b11111111. I tried MAN_600,1200,2400 and 4800. For attiny85 I tried both SpenceKonde and Damellis implementations. I'm on Arduino IDE 2.2.1 code for ATTiny85:
And for Arduino Uno: