This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Detect when BLE connection is made (Arduino library)
#7
Hey,

Jens got already a good starting point if I understand your question correctly. In case you dont know: It is possible to add an .phyphox file to your arduino sketch. Therefore you have to convert the .phyphox (or a zip file with one or multiple) file into an byte array and add it to the start function as we did in our CO2 project:

https://github.com/Dorsel89/phyphox-ardu...it.ino#L65 (check also line 75)

I know its ugly, but this way you can use all in phyphox available features and still store the experiment localy on your microcontroller without being limited by the library. If you dont know how to get the byte array you might want to take a look in the following java script (I know its ugly aswell, but since its rarely requested im too lazy to make a prober "public suitable" version Wink).

https://github.com/Dorsel89/ZipFileToByteArray

Cheers
Dominik
Reply


Messages In This Thread
RE: Detect when BLE connection is made (Arduino library) - by Dominik Dorsel - 01-26-2023, 07:08 PM

Forum Jump: