NGCP / xbeeplus

Cross-Platform C++11 Xbee Radio API
3 stars 0 forks source link

Fix ParseFrame #11

Closed KarthikJay closed 7 years ago

KarthikJay commented 7 years ago

In SerialXbee.cpp (Line 42):

Function ParseFrame does not actually parse frames. There is an error where either the read function is reading incorrect data, or the HexString function is simply formatting the data output incorrectly.

The debugging should make sure that messages are being read from the buffer correctly and stored into temporary variables which then initiates the switch case statement to generate a frame object.

Once out of the switch case, the frame should be passed to a user registered call back function (by default if no user has registered a callback it will simply print the frame data out.)