How Do You Change A String Characteristic Dynamically? #199 - GitHub

Skip to content Dismiss alert {{ message }} / ArduinoBLE Public
  • Notifications You must be signed in to change notification settings
  • Fork 231
  • Star 345
  • Code
  • Issues 114
  • Pull requests 22
  • Actions
  • Projects
  • Security

    Uh oh!

    There was an error while loading. Please reload this page.

  • Insights
Additional navigation options how do you change a string characteristic dynamically? #199New issueNew issueClosedClosedhow do you change a string characteristic dynamically?#199@sdetweil

Description

@sdetweilsdetweilopened on Aug 16, 2021

I have a characteristic created with a string value. and now I need to change it...

but writeValue() doesn't work

BLECharacteristic hashCharacteristic("9AFF", BLERead," 12345"); hashCharacteristic.writeValue(encoded,sizeof(encoded),false); // overlay default with actual, doesn't work hashCharacteristic.setEventHandler(BLERead, hashCharacteristicRead); ledService.addCharacteristic(hashCharacteristic);

whatever I set it to at create time, that is it

and I can't remove a characteristic..

if I stop Advertising, can I add the same characteristic and overlay the old one? or do I have to recreate the service?

Metadata

Metadata

Assignees

No one assigned

Labels

No labelsNo labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You can’t perform that action at this time.

Tag » Arduino Ble Writevalue