blessed icon indicating copy to clipboard operation
blessed copied to clipboard

Connection state - master role

Open tommag opened this issue 10 years ago • 7 comments

Hello !

Here is my implementation of the connected state in Master role. The provided example works for me in communication with a custom nRF51822 device (using Nordic S110). This device implements the Battery Service and a custom service that controls a LED via PWM, which allows to test data TX & RX.

I saw that you pushed quite a lot of commits since I wrote this, so I think I will have to work again on the events and callback part... Using the brand new ll_plat API ?

tommag avatar Sep 10 '14 14:09 tommag

Hi Tom, this is amazing!

Tomorrow I will definitely look into this PR and then I'll be able to make proper comments.

The ll_plat_* functions are an attempt to not break the stack logic while the upper layer (the "application") is processing some event/report. The idea is to execute application handlers in a lower priority than the stack code so these handlers will never block the RADIO and TIMER interruptions. Let's try to use these functions to see if they work properly.

PS: I've setup integration with Travis CI to build every PR and it seems this is failing.

pauloborges avatar Sep 11 '14 16:09 pauloborges

Concerning the build error : it looks that the examples break because of the new blessed/events.h file that would have to be included along with ll.h. This part will probably have to be re-worked on anyway !

tommag avatar Sep 12 '14 08:09 tommag

I started to review, but I had to stop at f16e3f3. On monday I'll finish this.

pauloborges avatar Sep 12 '14 23:09 pauloborges

Hello Paulo,

Thanks for the review and sorry for the delay, I am quite busy these days... I will try to update the PR this week !

tommag avatar Sep 23 '14 20:09 tommag

Ok!

pauloborges avatar Sep 24 '14 14:09 pauloborges

Hello !

I could finally find some time to take your remarks into account, sorry again for the delay...

Unfortunately I couldn't test the code as I don't have the hardware with me at the moment but the previous version was working and I did only minor changes.

It seems that the build fails because of a connection timeout somewhere, is there some way to launch it again ?

Cheers,

Tom

tommag avatar Oct 05 '14 15:10 tommag

I had to shut down the build server. Now it is working again and the error message is correct.

pauloborges avatar Oct 08 '14 21:10 pauloborges