mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
17 lines
727 B
Python
17 lines
727 B
Python
import frame_handler_ping
|
|
import helpers
|
|
import data_frame_factory
|
|
import frame_handler
|
|
import datetime
|
|
from message_system_db_beacon import DatabaseManagerBeacon
|
|
|
|
|
|
from message_system_db_manager import DatabaseManager
|
|
class BeaconFrameHandler(frame_handler.FrameHandler):
|
|
|
|
def follow_protocol(self):
|
|
DatabaseManagerBeacon(self.event_manager).add_beacon(datetime.datetime.now(),
|
|
self.details['frame']["origin"],
|
|
self.details["snr"],
|
|
self.details['frame']["gridsquare"]
|
|
)
|