User's Guide

10
3.2 Button Press Driven Scanning
Buttonpressescanresultinthedevicepublishingasensorreporttotheserver. Theformatandcontentofthesensorreportisthesameas
thatwithperiodicreporting,excepttheindicatedtypeofmessagewilldiffer(periodic:“per”,buttonpress“btn”,ActiveModeEntry:“norm”,
SetupModeEntry:“stp”).
3.2.1 DoubleButtonPress
Pressingthebuttontwicequicklyresultsinadedicated(“btn”)sensorreportpublishedtotheMQTTserver. Notethatthedevicewillnot
recognizemorethanonedouble‐buttonpressevery3minutes.
Whenthedouble‐buttonispressed,theLEDswillilluminateandwhentheLED1Greenstopsflashingandilluminatessolid,thedevicehas
publishedthemessagetotheserver.
3.2.2 LongButtonPressforEntryintoActiveOperation
Pressingthebuttoncontinuouslyfor3secondsorlongerresultsinthedevicetransitioningto/fromSetupModeandActiveOperation.
3.2.2.1 ActiveModeEntry
Thedevicepublishesadedicated(“norm”)sensorreporttotheMQTTserverwhenthedeviceinitiallyentersActiveMode(fromSetupModevia
alongbuttonpress)orwhenthedevicebootsupforthefirsttime.
3.2.2.2 SetupModeEntry
Thedevicepublishesadedicated(“stp”)sensorreporttotheMQTTserverbeforethedeviceentersSetupMode(fromActiveMode).
3.3 Configuration
3.3.1 monitorPeriod
ThemonitorPeriodcontrolsthenumberofsensorreportsmadepertimeperiod. Itsunitsareprogrammedinseconds,butareinternally
roundeddowntothenearestminuteinternallybythedevice(e.g.239secondsistreatedas180seconds,or3minutes).
Range:180secondsto15,552,000seconds. Recommendednotsettingtovalueslongerthan24hoursor86400seconds.
3.3.2 commSynchPeriod
ThecommSynchPeriodcontrolsthenumberoftimesallcollectedsensorreportsarepublishedpertimeperiod. Itsunitsareprogrammedin
seconds,butareinternallyroundeddowntothenearestminuteinternallybythedevice(e.g.239secondsistreatedas180seconds,or3
minutes).