rgerganov / py-air-control

Command line app for controlling Philips air purifiers
MIT License
264 stars 53 forks source link

How to acquire the device's IP after WiFi setup? #17

Closed TchaikovDriver closed 5 years ago

TchaikovDriver commented 5 years ago

Does the code provide a way to acquire the device's IP after WiFi setup? Didn't see any relative code. Is it possible to acquire that programmatically?

rgerganov commented 5 years ago

I am not aware of such method. After you specify the SSID and the password, the purifier gets its IP over DHCP. At least this is how mine works.

TchaikovDriver commented 5 years ago

I am not aware of such method. After you specify the SSID and the password, the purifier gets its IP over DHCP. At least this is how mine works.

It seems that I can only fetch its IP from the router. It's a pity that I can't integrate this project as well as getting device IP in an Android SDK. Anyway, thanks for your reply.