nRF24 / pyRF24

A python package that wraps the RF24, RF24Network, and RF24Mesh C++ libraries.
http://pyrf24.rtfd.io
GNU General Public License v2.0
24 stars 3 forks source link

Small updates #14

Closed 2bndy5 closed 1 year ago

2bndy5 commented 1 year ago

More like routine updates...


Most significant change here is the increase of the MAX_PAYLOAD_SIZE to 1514. One can still customize the value by doing a custom build from source using an env var named CMAKE_ARGS

export CMAKE_ARGS="-DMAX_PAYLOAD_SIZE=1514"

or monkeypatch the value at python runtime (not entirely good practice because its technically a module-level "constant" attribute)

import pyrf24
pyrf24.rf24_network.MAX_PAYLOAD_SIZE = 1514
2bndy5 commented 1 year ago

This will close #13 since that's where I discovered the lack of payload_size max/min description in the docs.