Giter Club home page Giter Club logo

esp-adapter's People

Contributors

fiz1962 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

esp-adapter's Issues

Comparing strings instead of numbers in IP range

for(var i=ipStartSplit[3]; i<=ipEndSplit[3]; i++) {

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

Gateway configuration

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

Adapter disappears after restart

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.