luigiplr / node-hotspot

Manage, Add & Remove infrastructure mode hotspots on Windows & OSX, WIP: Linux
GNU General Public License v3.0
27 stars 10 forks source link

In need of Docs #10

Open DanielDoe opened 7 years ago

DanielDoe commented 7 years ago

Hey Luigi Poole am really interested in using your module for a project but i don't quiet get the usage. Am on a Mac OSX could you help me out please. I'd be so grateful `

Here is my code snippet

i created a function startHotspot = (opts) => { console.log('Starting Hotspot.......'); hotspot.enable(opts) .then(function() { console.log('Hotspot Enabled'); }) .catch(function(e) { console.log('Something went wrong; Perms?', e); }); console.log('Hotspot Started....... Well');}

and i called it <Button style={{width:'50px', height:'50px', position: 'relative'}} onClick={() => this.startHotspot(opts)}> <MdFingerprint size={30} style={{position: 'absolute', top: '10px', left: '10px'}}/> </Button>

with the opts defined outside the react class it run well but no hotspot was created