Skip to content

robonation/nmeaserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmeaserver

Python framework for a NMEA 0183 TCP Server inspired by Flask developer API

Create your first NMEA Server

The nmeaserver framework is inspired from the Flask interface to make it straight-forward to setup server.

The first step is to install nmeaserver locally.

pip install nmeaserver

To create your first server, all you need to do is:

from nmeaserver import server, formatter

# Creates a nmeaserver
app = server.NMEAServer()

# Create a message handler that receives all messages with the sentence ID: 'RXTST'
@app.message('RXTST')
def tst_handler(self, context, message):
    return formatter.format('TXTST,Message Received!')

# Starts the server
app.start()

About

Python framework for a NMEA 0183 TCP Server inspired by Flask developer API

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages