Yes, I was under the impression it would send it just when I ask it to.
So my if else statement just changes What is being advertised, not When it will be advertised.
My setInterval call determines the Frequency of the broadcast.
If I know it takes my son 3 minutes to get all of the dog food out and put it in bowls, then can't I set the interval to 60 seconds? (you mentioned not staying connected if it was too infrequent).
I have read over that page, all good info, but being new the concepts take a bit to sink in. Q & A really helps.
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.
Yes, I was under the impression it would send it just when I ask it to.
So my if else statement just changes What is being advertised, not When it will be advertised.
My setInterval call determines the Frequency of the broadcast.
If I know it takes my son 3 minutes to get all of the dog food out and put it in bowls, then can't I set the interval to 60 seconds? (you mentioned not staying connected if it was too infrequent).
I have read over that page, all good info, but being new the concepts take a bit to sink in. Q & A really helps.
Thank you for your clarifications.