Git Product home page Git Product logo

arduino_msgpack's People

Contributors

brice-morin avatar jeot avatar nharrand avatar per1234 avatar zakkie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

arduino_msgpack's Issues

How to encode/decode an object

Hi and thanx for your work

I am looking to encode/decode an array that would look like this
PHP arrays
$data = [ '1234567',
['9999999', '7654321', '64'],
['62', ['64513451334' => '' ],
[
'pin1'=>['5,2,4'],
'ipin2'=>[5,2,'readIC'=>3],
4=>[2=>80]
]
]
];

I looked at the examples but I can not understand how can I use it for such arrays which are more real life and would like to pack everything and send it in 1 package rather than splitting it in multiple parts like the examples show.

Thank you.

int16_t written incorrectly

Hi,

I believe there is an error in the implementation of msgpck_write_integer(Stream * s, int16_t i).

If i > 127 and i <= 254, the else-part is executed. But then the number is written as an int8_t, so it will be interpreted as a negative number on the other side.

It seems that there is a case-distiction missing in the else-part: If i > 127, it should be written as uint8_t, otherwise as int8_t.

Thanks

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.