Open ChronoGit opened 6 years ago
Can you confirm you get connectivity to IBM Cloud/Bluemix MQTT ? you get a line saying connectivity has been made at the start of the App on the Mac. I have got the system working but have a real Mac where everything is running (i.e. bluetooth and connectivity to the Cloud).
Did the system ever work with your current setup ?
This was the first time I tried this application, so the System has not worked before.
I was also trying the Controller without Bluemix, as the instructions stated that as optional, as long as you comment the last lines out. Now in the version I posted that is not the case, however I also tried it with everything below the MQTT commented out.
Hello, I am having the same problem with the controller programm. Have you solved this problem?
After much hair pulling and logging to console, I was able to get this working by:
Using following to scan correctly with noble (replacing the startScanning section):
noble.on('stateChange', function(state) { if (state === 'poweredOn') { console.log('start scanning'); noble.startScanning(); } else { noble.stopScanning(); } });
and then also stepping through the services array until I found the matching characteristic.uuid's
peripheral.connect(function(error) {
peripheral.discoverServices([], function(error, services) {
var service = services[2];
(was 0, and only worked after setting to 2)
Thanks for pulling your hair. This was the solution.
The problem are multiple Bluetooth devices so you have to select the correct from the service object.
Hello!
I am having a problem with the controller program. Up until then, everything worked, and I could find the two IDs of my cars (Although they were a lot shorter than the ones in the screenshot).
If I now try to start the controller.js however, nothing happens on screen. The "help" command works, but every other command throws this error:
My config file looks like this:
Could it be a problem that I am running the program in a Linux VM?
Thanks for any help you can provide!
Sincerely, Chrono