Skip to content

Feedback for V2 #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
256dpi opened this issue Jan 26, 2017 · 9 comments
Closed

Feedback for V2 #53

256dpi opened this issue Jan 26, 2017 · 9 comments
Labels

Comments

@256dpi
Copy link
Owner

256dpi commented Jan 26, 2017

@gibix @sandeepmistry and all others.

I want to collect some ideas and thoughts about a possible V2 of this library. Do you have anything to add to what is already tagged with the v2 milestone?

@256dpi 256dpi added this to the v2 milestone Jan 26, 2017
@sandeepmistry
Copy link
Contributor

@256dpi the list looks good so far!

I think it's partially covered by #39, however the Wire and new I2S Arduino libraries have a function to called onReceive to set a function handler for received data (https://www.arduino.cc/en/Reference/WireOnReceive). It would be nice to have this, instead of forcing sketched to define void messageReceived(...).

@256dpi
Copy link
Owner Author

256dpi commented Jan 26, 2017

@sandeepmistry That's a nice idea, will create a separate issue for that.

@256dpi
Copy link
Owner Author

256dpi commented Jan 26, 2017

How do you feel about supporting QoS1 and QoS2? I still have the feeling it complicates things too much and might not be really used by the community.

@sandeepmistry
Copy link
Contributor

Do you have any benchmarks for the RAM and code space it adds?

@256dpi
Copy link
Owner Author

256dpi commented Jan 26, 2017

Here are the numbers for the WiFi101 example on a MKR1000 board (without testing the code):

QoS0: 25768 bytes (9%)
QoS1: 26240 bytes (10%) + 472 bytes
QoS2: 26552 bytes (10%) + 312 bytes

Honestly, I tought the difference would be much bigger.

@sandeepmistry
Copy link
Contributor

Nice! Do you nice time to check the Uno as well? It should also print out the RAM used.

@256dpi
Copy link
Owner Author

256dpi commented Jan 26, 2017

Here is the Arduino Uno with WiFi101:

QoS0: 25294 bytes (78%) - 1042 bytes (50%)
QoS1: 25980 bytes (80%) - 1042 bytes (50%) + 686 bytes
QoS2: 26540 bytes (82%) - 1092 bytes (53%) + 560 bytes

The differences seem to be slightly bigger.

@sandeepmistry
Copy link
Contributor

Ok, not bad!

Are 1042 and 1092 bytes for the RAM? If so, it sounds reasonable to go ahead with the feature :)

@256dpi
Copy link
Owner Author

256dpi commented Apr 26, 2017

This is beeing addressed in #59.

@256dpi 256dpi closed this as completed Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants