recieving Watchface data by BLE

Hey, I'm diabetic and I want to display my sugar level on WatchFace and DataField during activity. My main goal is to not use internet connection at all and display data provided or delivered by iOS (by bluetooth) by my own application. In iOS I can do whatever is needed, but I find Garmin development non intuitive and struggling with that.

Could you help me to understand what type of application (or applications) for Watchface and what type of data delivery / requesting  should I use to achieve that? Tried `watchface` with `Communications.registerForPhoneAppMessages` but there is no way I can test it in Simulator.
Is there any way to test it on VSCode and CIQ Simulator to test that behaviour?

Any input is appreciated! 

  • You should be able to test phone to device messages in the simulator. And also you should be able to connect to your BT device from the simulator, but you'll need a dongle.

  • Have you looked at connecting your sensor directly to the garmin and not even using the phone?

    Here's something I wrote for a raspberry pi...

    https://forums.garmin.com/developer/connect-iq/b/news-announcements/posts/would-you-like-some-raspberry-pi-with-your-connect-iq

  • Hmm, it's not an option for me. Rasberry Pi is not device I want carry with me in addition of I already have. The whole setup is little more complex. I need AndroidAPS running on Android phone to connect my insulin pump and sensor and manage some downs and highs.
    Because I'm mainly iOS user (all notifications on iPhone that I don't want to lose), I want watch to be connected to iPhone.

    For now, I've written my own application that listen on Android for events and broadcast sugar level on BLE and also iOS application that listen for that BLE messages and e.g. shows sugar level in app.

    Missing part is how to take that information from iOS app and put it into Garmin watch.
    I'm lost in that last part. How to send data from iOS into Garmin (or request it from Garmin). I'm not sure what is possible by SDK, what is good approach in Garmin development and what actions should be taken to achieve my goal. 

    There are applications that request this data from Nighscout server, but it requires internet connection. When hiking or cycling, I'm not always in range of any internet - I want to have it running without internet.