Skip to content

expose rssi from a method in wifimanager #18

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

Merged
merged 1 commit into from
Feb 27, 2019

Conversation

brentru
Copy link
Member

@brentru brentru commented Feb 26, 2019

Addressing #15

Exposing RSSI for the access point we're connected to as wifi.signal_strength

@brentru brentru requested review from makermelissa and a team February 26, 2019 23:54
"""
if not self._esp.is_connected:
self.connect()
return self._esp.rssi()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In discord you mentioned that _esp.rssi() returns an unpacked struct and would need to be cleaned up; is that not the case?

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As siddacious said, you mentioned it needed to be "prettified"/cleaned up. Did you want to take care of that?

@brentru
Copy link
Member Author

brentru commented Feb 27, 2019

I was incorrect on discord, this will return a value (for example, calling wifi.signal_strength returns -47)

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, looks good then.

@makermelissa makermelissa merged commit f405288 into adafruit:master Feb 27, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 27, 2019
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 1.3.1 from 1.2.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#17 from brentru/update-comments-for-pixel
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#18 from brentru/expose-rssi
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#16 from brentru/expose-ip-addr
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#14 from makermelissa/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants