Post

Replies

Boosts

Views

Activity

Bonjour for discovering a specific device's ip
Hi, I'm new to swift programming and right now writing an app for esp8266-controlled lamp device. My lamp is broadcasting it's own IP through bonjour. So all I want is to discover any lamps in my network (http.tcp) and to read name and value. Is there any example of such implementation? All I found so far is old or a lit bit complicated for such simple question. Thanks in advance!
26
0
13k
Feb ’21
Where to put "content-available = 1" when sending local notifications
I'm writing an app to control a device through http requests. And the final goal is shutdown timer. User can specify time in minutes for app to shutdown device. And timer is working fine until app in foreground. I know that I could use silent local notification for app to come back from background for 30 sec and send http request to shutdown device but I cannot manage where to put "content-available" key for it... there are notification title, body, sound and userInfo and that's ok, but I searched all over the internet for a few days and there is no example where to put "content-available=1" for this purpose.
0
0
802
Mar ’21