Skip to content

Commit

Permalink
add function to set MCUId
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulaScharf committed Jul 29, 2024
1 parent fc184ed commit b6dcc5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SenseBoxBLE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ String SenseBoxBLE::getMCUId(){
return port.parseStringResponse("AT+UMLA=1",1000);
}

void SenseBoxBLE::setMCUId(String address){
port.parseStringResponse("AT+UMLA=1,"+address,1000);
}

/**
* @brief Adds a characteristic to the BLE module.
*
Expand Down
1 change: 1 addition & 0 deletions src/SenseBoxBLE.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class SenseBoxBLE
static int setConfigCharacteristic(const char* serviceUUID, const char* characteristicUUID);
static void setName(String name);
static String getMCUId();
static void setMCUId(String name);

static bool write(int, float&);
static bool write(int, float&, float&);
Expand Down

0 comments on commit b6dcc5a

Please sign in to comment.