Skip to content

Conversation

@facchinm
Copy link
Contributor

This PR incorporates and superseded #2 .
FIxes #1

@nicolsc

nicolsc and others added 4 commits May 19, 2017 11:20
…ork This uses a different SPI transaction (`0x0B`), and allows to send empty frames for basic applications such as buttons, door opening systems, ... Added a simple example called _SendBoolean_

Let me know if I need to structure this differently to fit with the lib architecture :)
@nicolsc
Copy link
Contributor

nicolsc commented May 19, 2017

Thx @facchinm !

if (len == 0) return -1;

if (rx == false && len == 1 && mess[0] < 2) {
//we can use send_bit command

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolsc @facchinm will this change behaviour if the remote side is expecting a 0 or 1 in a single byte?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, on the backend, the received value becomes an uint8_t, it is only sent as a single bit at the physical layer.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 @facchinm

It's purely protocol-related .

On the backend/callback side, it's handled as an standard payload & exposed as an hexadecimal string to convert back to original data types.

@facchinm facchinm merged commit f669ffa into arduino-libraries:master May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants