fiz1962 / esp-adapter Goto Github PK
View Code? Open in Web Editor NEWAddon for ESP8266 and mozilla-iot gateway
License: Mozilla Public License 2.0
Addon for ESP8266 and mozilla-iot gateway
License: Mozilla Public License 2.0
Line 154 in 007cdab
Hello,
on the mentioned line (the condition of for loop) the variables are compared as string and not numbers.
In the default examples (10.0.0.10 - 10.0.0.20) this does not impose any problem, but with values likes 192.168.0.50 - 192.168.0.120 the code wont even enter the for loop because string 50 is greater than string 120
something like for(var i=Number(ipStartSplit[3]); i<=Number(ipEndSplit[3]); i++) {
does the trick
Not to mention that this would work only in /24 subnets and not in bigger networks
Should the range be defined on the Raspberry Pi where the gateway runs with
$
cd ~/mozilla-iot/gateway/tools
./config-editor.py -e ESP-adapter
I would recommend switching to https://github.com/mozilla-iot/thing-url-adapter.
Hello,
I can add ESP addon through webUI and then, I can see it in adapter section in settings, but it disappears when the mozilla-iot-gateway service is restarted.
This does not happen with other addons (tested with VirtualThingsAdapter)
Version: 0.3.0
Running on RPi v3
Could you please provide more information on the JWT string
?
Lines 9 to 11 in 3021ed8
I haven't found any JWT on the WoT API page at https://iot.mozilla.org/wot/.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.