add beginnings of nodedb

This commit is contained in:
geeksville
2020-02-03 09:13:19 -08:00
parent e6535f5504
commit d11b023c85
8 changed files with 194 additions and 51 deletions

13
src/MeshTypes.h Normal file
View File

@@ -0,0 +1,13 @@
#pragma once
// low level types
#include <Arduino.h>
typedef uint8_t NodeNum;
#define NODENUM_BROADCAST 255
#define ERRNO_OK 0
#define ERRNO_UNKNOWN 32 // pick something that doesn't conflict with RH_ROUTER_ERROR_UNABLE_TO_DELIVER
typedef int ErrorCode;