Skip to content

onRead sequence question. #816

Closed
@DontSerious

Description

@DontSerious

Last version i used is 1.4.3, when i try to read value from esp32, the value that i get is after onRead process(i will call a setValue() inside onRead())

void onRead(NimBLECharacteristic *characteristic, NimBLEConnInfo &connInfo)
    {
        String rxValue = getCurrentPatternName();
        characteristic->setValue(rxValue);
        Serial.println("pathName on Read: " + rxValue);
    }

After i update to 2.1.1, when i try to read value, the value is old value which is last time i call setValue().
Right now, i want to know if this sequence is change and is there a way to change the sequence from the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions