Avatar for binux

binux

Member since Dec 2018 • Last active Dec 2018
  • 1 conversations
  • 3 comments

Most recent activity

  • in Puck.js, Pixl.js and MDBT42
    Avatar for binux

    Okay great info thanks!

    I'm afraid you can't. As far as I've seen iOS just caches the services and there's not that much that can be done about it - you just need to reboot the phone, or use an Android phone which won't cache them.

    The sig has a gatt value called "Services Chagned" if this is set to true, the iPhone will reinit the cache. You might want to consider this for the future, I know nordic provides this falg to be set. https://www.bluetooth.com/specifications­/gatt/viewer?attributeXmlFile=org.blueto­oth.characteristic.gatt.service_changed.­xml

  • in Puck.js, Pixl.js and MDBT42
    Avatar for binux

    It seems like your guess with the power was correct. I was powering it over the 3V line of my TTL converter, switching to 5V fixed the issue of rebooting.

    A question arises for me though now. Will the NRF switch back to low power mode or do I have to trigger this myself then?
    And how do I set the services changed flag so iOS is triggering a rescan of the characteristics and services instead of chaching them?

    Thanks already!

  • in Puck.js, Pixl.js and MDBT42
    Avatar for binux

    Hi everyone,

    I'm very new to the Espruino platform and I got myself the above mentioned module, beacuse I want to create a very basic Bluetooth application. The module shall be a peripheral exposing the battery service and one custom service which contains two characteristics.

    I tried to use

    NRF.setServices
    

    via the NRF object and then flashed it onto the module via Serial, but it looks like the moment the code is activated the module is restarting several times and then no change to the software is visible. I guess I made a simple mistake, but I couldn't find a good full example explaining the way Bluetooth works on this platform.

    Can anyone help me out on this? I'm running firmware versio 2v00.136 btw.

    Thanks for any help!

Actions