sendMessageToGateway('BEEP') function

Started by jamacaulay, February 15, 2019, 04:00:24 PM

jamacaulay

Does anyone know the purpose of this function called from metrics.js?  Would like to 'beep' the gateway using a piezo buzzer as an alarm if something happens in the basement out of earshot (sonar mote in sump), but am not sure what this function actually does, what extra code needs to be implemented and where outside the metrics.js, where and what pins it uses, etc.  Many thanks in advance.

Felix

It's to ask the gateway Moteino/MightyHat to beep. If you look in the MightyHat sketch there is a function to buzz the onboard buzzer, it's not loud, unless you decide to hook up something much louder.

jamacaulay

Thanks Felix.  Will check out the MightyHat sketch and pull out the code to beep the regular Moteino I have in place for now.  Adding a MightyHat will be next winter's upgrade I think.