I am trying to use SSDP discovery for esp devices. but when i use node-ssdp library in my nodejs its working, but when i try to use it in ionic its showing this error Error: Cannot find module “dgram”.
when i located the the dgram in my laptop it shows 3 files in
/usr/share/doc/nodejs/api/dgram.html
/usr/share/doc/nodejs/api/dgram.json.gz
/usr/share/doc/nodejs/api/dgram.md
i just want to discover the devices in the network.
thank you in advance,
BR,
Karrthhic
How did you install this library in your Ionic project?
How exactly are you using it?
What is your ionic info
output?
cli packages: (/usr/lib/node_modules)
@ionic/cli-utils : 1.13.1
ionic (Ionic CLI) : 3.13.2
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 3.0.0
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.7.1
System:
Node : v6.11.4
npm : 3.10.10
OS : Linux 4.10
Misc:
backend : pro
I have a nodejs app which will scan for the available ssdp devices in the network. I would like to have it in the mobile so i am writing this ionic application
Not sure if the browser supports dgram. I remember, trying to add it but it required other stuff on sockets not supported
Ended up working with cordova udp
Working on upnp discovery (sonos). I believe I got it to work, but not sure anymore
Tom