Zeroconf protocol support
closed
Ville Immonen
I'm using Expo for a home automation app with a local server in the wi-fi home network. It would be great to make the setup automatic by using zeroconf (zero-configuration networking) to discover the server when connected to the same wi-fi. There's a React Native library that implements it (I haven't tried it yet, though): https://github.com/Apercu/react-native-zeroconf
I believe this could be nice for many "IoT-type applications" :)
Kim Brandwijk
closed
As EAS Builds and Development Clients support custom native dependencies, it is now possible to use a library like
react-native-zeroconf
for this in your project.Kim Brandwijk
closed
As EAS Builds and Development Clients support custom native dependencies, it is now possible to use a library like
react-native-zeroconf
for this in your project.pc
Kim Brandwijk: hi, this is great news, however just tried installing react-native-zeroconf in my expo project and it is still not working. (using SDK46)
Michael Wood
pc: How did you build it and test it?
pc
Michael Wood: didn’t build yet, just using the development client for now (expo go). Starting zeroconf.scan(), but I get zeroconf undefined, meaning the process doesn’t initialize.
Michael Wood
pc: Hi. Expo Go is not what Kim is referring to by "development client". You will need to build the development client with "eas build --profile development". It will not work in Expo Go, because it requires native code that is not included in Expo Go. A development client is basically a custom version of Expo Go which includes all of your dependencies.
pc
Michael Wood: hi, thank you for the clarification, it is working on dev client after build. Great improvement !
Mahmoud Abd Al-Hadi
Unfortunately, many people are looking for local network discovery packages that works wit Expo. and there are other features request here that asks the same thing, I think Expo team should look into this seriously.
Right now all IoT Expo apps are waiting for one of these packages:
TCP
UDP
Zeroconf
and there are 3 opened features request, I think we should combine them together to get at least one of them asap.
Charitha Goonewardena
Any luck with this? Dying for this...
Renato Atilio
It would be great if we could have something like this. Looks like even Ionic has a "zeroconf" module, when working with IoT and embedded devices it's really useful.
Will Brickner
This is critical, but unfortunately I must eject to utilize zeroconf / bonjour.
José Roberto Canuto Vasconcelos
im trying to do that with my IoT APP, no luck yet though, i got everything working over IP, the only thing left is service discovery
a
Support for running a local server on the mobile device that can be opened from another device on the same network would be nice too, not sure if this lib implement that or can be used to do it.
a
Nice!