2 BLE GATT Services and Characteristics
morgan edited this page 2024-10-25 23:53:52 -04:00

Overview of Services and Characteristics need for Barback to communicate between one another, between their respective Barheads in addition to external devices such as a phone or laptop. Each tree is from the device prospective. eg;

  • Device
    • Service
      • Characteristic

BLE GATT

  • Barback

    • Config
      • Name - (string) [rwn]
      • Barhead MAC - (6 bytes) [rwn]
    • Control
      • Arm - (bool) [rwn]
      • Pour - (true) [wn]
    • Prime
      • Pump [...n] - (bool) [wn] (This is a manual on/off for an individual motor (n))
    • Motor [...n]
      • Run Time - (ms) [rwn]
      • Max Speed - (PWM) [rwn]
      • Ramp Time - (ms) [rwn] (could be something else like a percent, ie; 3 will ramp over the first 3% of total run time)
      • Start Delay - (ms) [rwn] (this could be useful for incorporating the air pump)
  • Barhead

    • Config
      • Name - (string) [rwn]
      • Backback MAC - (6 bytes) [rwn]
    • Control
      • Paging - (bin) [rwn]