You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
646 B
Python

import os
'''
Plugin handler for the Geotech DR24 plugin.
'''
class SeedlinkPluginHandler:
# Create defaults
def __init__(self): pass
def push(self, seedlink):
# Check and set defaults
try: seedlink.param('sources.dr24.comport')
except: seedlink.setParam('sources.dr24.comport', '/dev/data')
try: seedlink.param('sources.dr24.baudrate')
except: seedlink.setParam('sources.dr24.baudrate', 19200)
try: seedlink.param('sources.dr24.proc')
except: seedlink.setParam('sources.dr24.proc', 'dr24_50')
return seedlink.param('sources.dr24.comport')
# Flush does nothing
def flush(self, seedlink):
pass