Giter Site home page Giter Site logo

nixes / iothublib Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 75 KB

a library for the esp8266 arduino platform that allows easy writing of sensor node programs for the iotHub platform

C++ 100.00%
iot iothub-platform esp8266 arduino-library api-client restful-api

iothublib's Introduction

iotHub Arduino Library

This is a library for the esp8266 arduino platform that allows easy writing of sensor / actor node programs for the iotHub platform.

Should support up to 20 sensors per device.

Stable releases are found under releases.

Dependencies

Example

The /examples folder contains some simple heavily commented examples of usage including both sensors and actors

iothublib's People

Contributors

nixes avatar per1234 avatar

Watchers

 avatar  avatar

Forkers

seco

iothublib's Issues

latest code is very crashy

Seems to only happen when something is routed.

Reset codes provide no help.
Maybe I'm not yielding enough?

get actor side restful api functional

Currently trying to use aWOT for a nice api router interface but bumping into problems using class state from within callbacks.

Solutions I can think of include, overloads for non-static class methods. Or the addition of an option to pass pointers to internal objects through the route interface. The final option I can think of is the use of global variables to store sensor and actor objects, and the reading of state from within the router callbacks.

overread of sensor ids

Read from eeprom into sensor_ids: 57b6ee6696069f5c1384272957b6ee6696069f5c1384272a
Read from eeprom into sensor_ids: 57b6ee6696069f5c1384272a

could probably fix by just reading as one big block into multidimensional array

How to allow multiple actors with different state types?

Some ideas so far:

  • Have a separate array for each type of actor struct and have an actor struct for each type,
  • Have the state actually be a json object and the callback function decides what to do with it.
  • Do some crazy templating so we can determine type at compile time (but this would allow only actors of the same type)

better look after eeprom, reduce unnecessary writes / clearings

Specific circumstances:

  • If server 404's and only one nodes registration fails continuously. Then the working nodes id will constantly get overridden.
  • Clearing of first boot bit when node is not recognised by server and registration succeeded anyway.

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.