RUNNING_ENABLE is active and setName

This commit is contained in:
lathoub 2021-09-19 16:45:29 +02:00
parent ecd68f842b
commit 12493b1054
1 changed files with 6 additions and 1 deletions

View File

@ -181,6 +181,11 @@ public:
void (*_connectedCallback)() = nullptr;
void (*_disconnectedCallback)() = nullptr;
void setName(const char *deviceName)
{
strncpy(mDeviceName, deviceName, sizeof(mDeviceName));
};
public:
void setHandleConnected(void (*fptr)())
{
@ -228,7 +233,7 @@ public:
* Else, it will put in the buffer the same info that it had received (runningStatus will be not transformated).
* It recommend not use runningStatus by default. Only use if parser accepts runningStatus and your application has a so high transmission rate.
*/
//#define RUNNING_ENABLE
#define RUNNING_ENABLE
void receive(byte *buffer, size_t length)
{