BottleBuddy / bottle-buddy-embedded

Bottle Buddy Embedded provides the source code for all the code that lives on the Bottle Buddy device.
0 stars 0 forks source link

Test that memory allocation is functioning correctly. #21

Open j-ka11 opened 3 years ago

j-ka11 commented 3 years ago

Since the pipeline is now well under construction, we can start defining areas that need to be debugged so we can know that the pipeline is functioning correctly. Mostly, this will deal with correct memory allocation.

Areas that need debugging

  1. Router Class
    1. Router receives payloads when a pipe is constructed at a location and a payload is sent
    2. Router retains a list of services that are subscribed to a location and successfully delivers a packaged payload to each service.
  2. Package Class
    1. Packages are able to handle all necessary types of data produced by different sensors.
    2. Packages don't lose information in transit.
  3. Service Class
    1. Service retains its uid and BLEService object in memory so it can be used later
    2. Correctly allocates new characteristic UUIDs every time it is asked to and stores new BLECharacteristics
    3. All information intended to be passed to the app through BLE eventually occurs.

Future Work

Once derived services begin to implement real time data interpretation, we will also need to ensure that those services are storing their necessary information correctly.