Comments (4)
Hi! There is an example app over here, and I see you have found this thread that contains some examples.
It should be possible to find the MDNS broadcast data from a NodeMCU device, and I suspect you might be having trouble searching for a particular type and domain. Are you able to find your NodeMCU device inside an MDNS search app like Discovery? If the zeroconf plugin app is searching for zeroconf.watch('_http._tcp.', 'local.', function(){...})
then the NodeMCU must be broadcasting at local._http._tcp
. It's easy to get these backwards.
If you would like more help, please share you code for both your Cordova app and your NodeMCU device.
from cordova-plugin-zeroconf.
@emcniece
Thanks for your fast reply, I get results
zeroconf.watch fetch all parameters mdns devices
by the way, what is command to get ip address of specified device:
mdns name: echo
mdns port: 80
I want to get ip of address of it
is there any example?
from cordova-plugin-zeroconf.
The watch method in the README is close, it can be adapted like so:
zeroconf.watch('echo.', 'local.', function(result) {
var action = result.action;
var service = result.service;
if (action == 'resolved') {
console.log('service resolved', service);
ipAddress = service.ipv4Addresses[0];
console.log('my IP address:', ipAddress);
}
});
I'm not completely sure this will find your service though. What is the full mdns hostname that your NodeMCU device is broadcasting as? It should be something like echo.local
.
from cordova-plugin-zeroconf.
@emcniece
zeroconf.watch('echo.', 'local.', function(result){ }
it is not working to watch specific device
I tried to build app with device android 6.0.1 then it is not working
I want to know what is minimum android version can work with your plugin
from cordova-plugin-zeroconf.
Related Issues (20)
- Crash acquireing jMulticastLock under-locked ZeroConfPluginLock HOT 1
- remove dependency on cordova-plugin-add-swift-support
- Cordova-cli 9 support HOT 9
- Unable to see my bonjour service HOT 4
- Please add support for Swift 4 (solution) HOT 2
- No IP, TXT records or resolved events HOT 7
- Swift 4 error HOT 2
- [IOS] zeroconf can't find new services after switch wifi HOT 2
- Does not find service published with bonjour on windows HOT 1
- iOS Crash HOT 11
- zeroconf.watch not working on Android 9 HOT 3
- Blocking Angular Change Detection HOT 2
- Why do you install 3d party plugging that mess up our files HOT 1
- stop loading node modules into our apps with 3d party plugs HOT 3
- Plugin does not request Local Network Usage Permission in iOS 14 HOT 6
- getHostName on Android 8 and 10 failing HOT 2
- iOS Build error: Cannot find 'Hostname' in scope HOT 6
- added but won't resolve HOT 1
- How to query? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-zeroconf.