I did some investigation in that direction with no result. The API seems to be very simple on the receiver side.
If you want to avoid to send wrong commands, the best ides is to send a command listen for "OK" and then send the next command, in case of "ERROR" repeat the last command.
Alternatively switch to low level programming.