help with PunchThrough Bean Arduino integration
I'm trying to call the cu module to scan for my light blue bean to grab temp data from it. Curious if anyone had any luck seeing it?
I had no trouble using the sample code to talk to my Light Blue Bean. I had major issues when I tried to extend the script to talk to more then one Bean and do anything that generated a lot of events close together. If you look at the sample script it maintains a reference to a single peripheral so how you extend this to support multiple peripherals is not obvious. There also seemed to be some tricky multithreading issues going on. I verified that the callbacks seem to be fired off on a pool of threads and it was easy to write code that was not safe under these conditions. In any case, I had good luck at least talking to the Bean and reading and writing to parameters.
There are others in the forum that have done some complex coding with single devices that may be able help you but I have not seen anyone else using LBB's. I have not played with it for many months.
Sorry I can not be of more help.
@wradcliffe perhaps the code for a minimal
hello_bean.pyexample would help.