OK, thanks @Gordon, so I think I understand the problem and why it won't work with the firmware as it is.
It seems from this that what you want is actually a lot simpler than that.
I'm afraid not.
I assumed you wanted to be able to connect with another device while stopping the phone connecting
This is correct. I want to connect the Puck to Phone A, send an HID string to it based on x-event, then, based on y-event I want the Puck to disconnect from Phone A or power-down and then be discoverable and able to connect to Phone B without Phone A ever auto-reconnecting.
I assume that using an E.on function as well as an onInit won't solve my problem? as they are essentially the same thing?
Is there a way to set the Puck to connect without bonding? Would that even work?
Is there a way other than changing the MAC address of making the Puck appear to be a different/unknown device to a previously paired Phone?
Can you think of any other ways around this other than a firmware update?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
OK, thanks @Gordon, so I think I understand the problem and why it won't work with the firmware as it is.
I'm afraid not.
This is correct. I want to connect the Puck to Phone A, send an HID string to it based on x-event, then, based on y-event I want the Puck to disconnect from Phone A or power-down and then be discoverable and able to connect to Phone B without Phone A ever auto-reconnecting.
I assume that using an E.on function as well as an onInit won't solve my problem? as they are essentially the same thing?
Is there a way to set the Puck to connect without bonding? Would that even work?
Is there a way other than changing the MAC address of making the Puck appear to be a different/unknown device to a previously paired Phone?
Can you think of any other ways around this other than a firmware update?