Browse Source

update

master
zhaohe 1 year ago
parent
commit
eb5a4e738e
  1. 9
      protocol.h

9
protocol.h

@ -7,7 +7,11 @@
extern "C" {
#endif
#define HAND_ACID_BLE_BASE_SIZE 3
#define HAND_ACID_BLE_BASE_SIZE 6
#define PACKET_H1 (0xAA)
#define PACKET_H2 (0xBB)
#define PACKET_TAIL (0xCC)
typedef enum {
kproto_cmd = 1,
kproto_cmd_receipt = 2,
@ -55,6 +59,9 @@ typedef enum {
#pragma pack(1)
typedef struct {
uint8_t h1;
uint8_t h2;
uint8_t packetlen;
uint8_t frame_type;
uint8_t frame_index;
uint8_t cmd;

Loading…
Cancel
Save