Skip to content

dz0ny/meshcore_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meshcore_client

Flutter/Dart package implementing the MeshCore BLE companion protocol — connection management, command queueing, frame parsing/building, and data models.

Installation

dependencies:
  meshcore_client:
    path: ../meshcore_client

Usage

import 'package:meshcore_client/meshcore_client.dart';

final ble = MeshCoreBleService(appName: 'My App');

ble.onConnectionState = (connected) { ... };
ble.onContact = (contact) { ... };
ble.onMessage = (message) { ... };

await ble.connect(device);
await ble.sendTextMessage(contact, 'Hello mesh!');
await ble.disconnect();

Architecture

MeshCoreBleService          ← public facade
├── BleConnectionManager    ← BLE connect/disconnect/reconnect
├── BleCommandSender        ← serialised writes to BLE characteristic
│   └── BleCommandQueue     ← queues commands; handles ack/response futures
└── BleResponseHandler      ← decodes incoming frames and fires callbacks
    ├── FrameParser         ← binary → typed responses
    └── FrameBuilder        ← typed commands → binary frames

Dependencies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages