Other alarms
Receive alerts for environmental changes such as entering or exiting tunnels and transitions between day and night.
Get notified for tunnel events
Set up notifications for entering and exiting tunnels using the AlarmListener:
class MyAlarmListener : public IAlarmListener
{
void onTunnelEntered() override
{
GEM_INFO_LOG("Tunnel entered");
}
void onTunnelLeft() override
{
GEM_INFO_LOG("Tunnel left");
}
};
Get notified for day and night transitions
Receive notifications when your location transitions between day and night based on geographical region and seasonal changes:
class MyAlarmListener : public IAlarmListener
{
void onEnterDayMode() override
{
GEM_INFO_LOG("Day mode entered");
}
void onEnterNightMode() override
{
GEM_INFO_LOG("Night mode entered");
}
};