LowPowerLab Forum

Software support => Pi Gateway => Topic started by: jamacaulay on February 15, 2019, 04:00:24 PM

Title: sendMessageToGateway('BEEP') function
Post by: jamacaulay on February 15, 2019, 04:00:24 PM
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.
Title: Re: sendMessageToGateway('BEEP') function
Post by: Felix on February 26, 2019, 12:16:30 PM
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.
Title: Re: sendMessageToGateway('BEEP') function
Post by: jamacaulay on April 04, 2019, 09:00:31 AM
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.