MAC address as byte string problems #11962
Unanswered
doceave
asked this question in
Libraries & Drivers
Replies: 2 comments 4 replies
-
How do you upload the file? |
Beta Was this translation helpful? Give feedback.
4 replies
-
My apologies for not making reply sooner --- I found two solutions which both point to Ampy and byte string handling as the issue:
Thanks for you assistance! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am attempting to implement an ESPnow as described by this page: https://docs.petoi.com/apis/8266-micropython-controller/using-the-esp-now-protocol
I am using latest ESPnow firmware for an ESP32-S2
When I update the example to reflect the MAC address of my devices and run the code in terminal everything works. If, however, I upload the code to the device and allow it to run as main.py an error results.
It appears that the following line as at fault:
peer = b'\x48\x27\xe2\x46\xfe\xc4'
When this line is uploaded it appears to be saved as:
peer1 = (b'H'âFþ¸')
Why is this particular line not being saved verbatim as is the rest of the file?
Beta Was this translation helpful? Give feedback.
All reactions