Encoder: Convert hexadecimal messages to "CC #".

In first place, thanks to PieterP, for help me with encoders in Reaper, work very fine.

Now i need that encoders working in Pro Tools (job's things) and i must send messages type "CC #" (i think be call sysex message), currently arduino is sending mesagges type "Serial In: Ch 1:Controller 16 value 127" (In hairless), in monitor midi software shows hexadecimal message "B0 01 10" for example.

In Pro Tools i move a encoder (arduino) and knobs in Pro Tools starts moves back and forward repeatdly,so that, there is comunication.

¿How i can change the kind of message to pro tools read correctly)?

My setup:
-Arduino Mega 2560.
-Windows 10 x64.
-Pro Tools HD 12.5
-Hairless and loopMIDI.
-Libraries: Encoder and Control_surface.
-"Hairless midi interface" into sketch.

THANKS SO MUCH.

UP

It might really help us to suggest how you could change your current sketch to do what you want if we were able to see your current sketch.