NGCP / xbeeplus

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

Generic Type to Hexadecimal String utility function #1

Closed KarthikJay closed 7 years ago

KarthikJay commented 7 years ago

Inside Utility.cpp:

Implement a generic Type to Hexadecimal String utility function. The function should return a standard string with space formatted hexadecimal octets Examples: FF A8 C6

In order to make it generic you might need to use a byte array to split up the data type, although there might be faster ways to do it. Link here for example code: http://www.cplusplus.com/forum/beginner/155821/

MichaelWallace30 commented 7 years ago

Is boost just for serial connection? Also does this work on Windows too?

On Nov 7, 2016 4:12 PM, "KarthikJay" notifications@github.com wrote:

Inside Utility.cpp:

Implement a generic Type to Hexadecimal String utility function. The function should return a standard string with space formatted hexadecimal octets Examples: FF A8 C6

In order to make it generic you might need to use a byte array to split up the data type, although there might be faster ways to do it. Link here for example code: http://www.cplusplus.com/forum/beginner/155821/

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NGCP/xbeeplus/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AF9oz4NllU9LTQVq5hHGilYTfqfOWjVyks5q7758gaJpZM4Kr4b- .

KarthikJay commented 7 years ago

Yea, boost is being used to handle the serial connections, and threading for us.

Right now the library isn't feature complete, nor has it been tested on windows.

I'll add it to a milestone so that you can see when that progress has been made.

zhangh94 commented 7 years ago

This is resolved in pull request #7