Help with getProductInfo

Hi, I'm trying to encrypt a token before it is stored and though about using the device serial number as the key, which looks like it's returned by the call getProductInfo. However, every attempts I made to retrieve that info has failed with an object not found. The doc isn't very clear on how to use it and there is nothing in the samples either :-(

This is the code

var productInfo = AntPlus.getProductInfo(null);
var serial = productInfo.serial;

with a using "Toybox.AntPlus;" at the top

It fails with

Error: Symbol Not Found Error
Details: Could not find symbol 'getProductInfo'

Thanks.

  • So if I managed to copy the .SET file it means I have physical access to your watch... Then what prevents me from pairing it with my phone and read the secrets after the watch decoded them and sends them via bluetooth to the phone (ah, well I could probably sniff that BT even remotely by just being close to you...) Of course only my phone I can do whatever I want... But today it is not that hard to install some virus on your phone that again makes physical contact with your watch unnecessary (possibly even no need for physical contact with your phone...)

    So one way to decrease the risk could be to have an app o the phone to have the secrets and use the watch to send commands to the phone app that will send the commands to the car. But of course as I wrote above this wouldn't help much if I had access to your phone...

    Horses didn't have these problems. Use your watch for horseback riding Slight smile

  • Well I guess it's the same as why bother locking your bike when a thief can bring a grinder to steal it...

    The idea came to mind to encrypt the token when while on a chat session with Garmin support, I was told to zip the whole Garmin directory and upload it to them (my Fenix 7S Pro doesn't record skin temperature when sleeping). I deleted that .SET file from the zip file before sending, but it's not something someone else would have thought of doing.