Skip to content

dugujiujian1999/painlessMeshListener.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PainlessMeshListener.py Static Badge Static Badge

This Python script is a tiny replacement for the PainlessMeshListener functionality.
It implements a distributed network of nodes that can communicate with each other using TCP connections. The nodes can send and receive messages, perform time synchronization, and maintain a list of connected nodes.

Features

  • Establishes TCP connections between nodes
  • Handles incoming connections and messages
  • Supports different types of messages: single, broadcast, time sync, node sync request/reply
  • Performs periodic maintenance to check for unused connections
  • Allows setting a receive callback function to handle incoming messages
  • Sends periodic broadcast messages to all connected nodes
  • Supports connecting to a specific node or running as a server

Usage

  1. Make sure you have Python 3.7 or higher installed.
  2. Change the script.
  3. Enjoy.

Warning

This project is currently for experimental purposes only and has not undergone comprehensive testing.

About

A Python alternative for the monitoring server of an ESP-based painlessMesh network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages