How to change the ID

hello, I would like to know how to change the ID of a dynamixel engine? i am using dynamixel.h library by TTL communication on arduino.

the engine in question is the XL330-M288-T, I’m also using the arduino IDE

I would advise against changing the ID of a DXL via an Arduino sketch because potentially this operation can result in a big mess with duplicate IDs.
It would be much better to change IDs via the tool named Dynamixel Wizard. Do you have the U2D2 module or the Arduino Controller OpenRB-150?