Skip to content

Conversation

@pect0ral
Copy link

…README to better reflect how to use library. This issue occured when trying to use the library against firmware 2.3.2. Was a simple fix.

</pre>
Returns a dict. The pool is on the key "ssidPool" separated by newlines. To get a quick list, do the following:
<pre>
ssids = p['ssidPool'].split('\n')
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't p['ssidPool'] return a list instead of a '\n'-joined string?

Copy link
Author

Choose a reason for hiding this comment

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

Yea probably but that's what's returned from the API raw. I've been using logging.getPineapLog() instead because it comes back structured with clients in json. I'll be publishing some more stuff and rewriting a bunch more of this library in my own repo as I get to it. I have to modify this PR most likely, as it wasn't backwards compatible with older firmware. The pineapple.api in mine is now but before submitting more PRs, I wanted to rewrite a few more things.

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.

2 participants