lancaster-university / microbit-dal

http://lancaster-university.github.io/microbit-docs
Other
256 stars 130 forks source link

rssi lost when using datagram::recv #453

Open pelikhan opened 4 years ago

pelikhan commented 4 years ago

Unfortunate that RSSI is not readable when using low level rcv function.

https://github.com/lancaster-university/microbit-dal/blob/master/source/drivers/MicroBitRadioDatagram.cpp#L66

jamesadevine commented 4 years ago

Yeah, I think there should be a low level recv call that returns a pointer to a FrameBuffer... then you can extract the relevant details and handle deletion of the packet struct manually.

I assume you don't want to use the PacketBuffer recv call because you're putting it into a MakeCode Buffer?