ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > Living Room

Bluetooth Power Monitor

<< < (3/3)

Asudem:
I know nothing about the BT controller you're working with, but that code just strikes me as painfully confusing to work with.
-Stoic Joker (March 03, 2016, 06:51 AM)
--- End quote ---
You are 100% correct. I hate it. But as illustrated from my example, I can't just say
--- ---ble.isConnected() == false because that just gives me the wrong answer, as every other logic test does here, including ble.isConnected() by itself.

It's by far one of the dumbest things I've ever coded, but it's kind of the point to demonstrate how silly the API is.

Navigation

[0] Message Index

[*] Previous page

Go to full version