using HM-10 bluetooth module and MSMBLE app for servo control and more

I’m using the HM-10 ble module and i want to control the position of a servo motor using it. I send numbers via the MSMBle app and use .write() command to move the servo … I’m unable to move the servo to the desired position and the servo moves to only a set position every time i power up … need suggestions on whether to change code or change bluetooth module. the code is attached. please help

new_bluetooth.ino (322 Bytes)