New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed MAC reverse byte order issue within the ESP32SPI library as it … #66
Changes from all commits
87095f6
ec97d6b
3fd6a12
da9f67f
00b6b95
File filter...
Jump to…
@@ -339,6 +339,16 @@ def MAC_address(self): # pylint: disable=invalid-name | ||
resp = self._send_command_get_response(_GET_MACADDR_CMD, [b'\xFF']) | ||
return resp[0] | ||
|
||
@property | ||
def MAC_address_actual(self): # pylint: disable=invalid-name | ||
"""A bytearray containing the actual MAC address of the ESP32""" | ||
if self._debug: | ||
print("MAC address") | ||
resp = self._send_command_get_response(_GET_MACADDR_CMD, [b'\xFF']) | ||
new_resp = bytearray(resp[0]) | ||
This conversation was marked as resolved
by ladyada
mytechnotalent
Author
|
||
new_resp = reversed(new_resp) | ||
return new_resp | ||
|
||
def start_scan_networks(self): | ||
"""Begin a scan of visible access points. Follow up with a call | ||
to 'get_scan_networks' for response""" | ||
check it! you can turn these three lines into one line of code by nesting the commands. please try it!