HomeiOS Developmentflutter - iOS utilizing bonsoir service leads to error code -72008

flutter – iOS utilizing bonsoir service leads to error code -72008


I am presently making an attempt to make use of an ESP8266, connecting to my house WiFi and beginning a mDNS service.
Then im making an attempt to find this service utilizing the bonsoir bundle in flutter. To date so good. On Android all the things works effective, however i need to use the app on the iPhone too.

So far as i understood the data on this video ‘developer.apple.com’ i would like so as to add this to my data.plist:

<key>NSLocalNetworkUsageDescription</key>
<string>Some comprehensible textual content for the consumer.</string>
<key>NSBonjourServices</key>
<array>
    <string>_http._tcp.</string>
</array>

I wrote a brief python script which resolves the service in my community and im getting the next output:

Service ESP8266Control._http._tcp.native. added, service data: ServiceInfo(sort=”_http._tcp.native.”, identify=”ESP8266Control._http._tcp.native.”, addresses=[b’xc0xa8x02xa0′], port=80, weight=0, precedence=0, server=”ESP8266Control.native.”, properties={b’SN’: b’10 – 00001′}, interface_index=None)

Tackle: [‘192.168.2.160’]

Port: 80

Service Identify: ESP8266Control._http._tcp.native.

Server: ESP8266Control.native.

Properties: {b’SN’: b’10 – 00001′}

The popup involves my display screen with the outlined message “Some comprehensible textual content for the consumer.” and i’ve to substantiate the utilization of community discovery utilization.

My flutter app must be right as a result of on android all the things works as anticipated.

I attempted to find the service in my community and that i get the error code -72008: Error occurred throughout discovery.

Is my syntax improper in my data.plist?
I additionally tried to make use of this ESP8266Control._http._tcp. and a number of other combos with .native on the finish, with and with out the service identify and with _http and _tcp seperated as 2 particular person entries.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments