XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.
Diff: Device/ExplicitAddress.h
- Revision:
- 6:5f31ddc17239
- Parent:
- 0:837e6c48e90d
diff -r 945b89c71902 -r 5f31ddc17239 Device/ExplicitAddress.h --- a/Device/ExplicitAddress.h Thu Nov 05 23:03:42 2015 +0000 +++ b/Device/ExplicitAddress.h Sat Nov 14 16:42:36 2015 +0000 @@ -8,12 +8,12 @@ private: // total 6 bytes // 1 byte of SourceEndpoint + 1 byte of DestinationEndpoint + 2 bytes of ClusterID + 2 bytes of ProfileID - char explicitValue[6]; + unsigned char explicitValue[6]; public: ExplicitAddress() ; - ExplicitAddress (const char * AddressValue, const char * ExplicitValue ); + ExplicitAddress (const unsigned char * AddressValue, const unsigned char * ExplicitValue ); ExplicitAddress(long SerialNumberHigh, long SerialNumberLow, int NetworkAddress, int SourceEndpoint, int DestinationEndpoint, int ClusterID, int ProfileID); @@ -22,23 +22,23 @@ /// 1 byte of SourceEndpoint + 1 byte of DestinationEndpoint + 2 bytes of ClusterID + 2 bytes of ProfileID /// </summary> /// <returns></returns> - char * getExplicitValue(); + unsigned char * getExplicitValue(); - int getSourceEndpoint(); + unsigned char getSourceEndpoint(); - void setSourceEndpoint(int SourceEndpoint); + void setSourceEndpoint(unsigned char SourceEndpoint); - int getDestinationEndpoint(); + unsigned char getDestinationEndpoint(); - void setDestinationEndpoint(int DestinationEndpoint); + void setDestinationEndpoint(unsigned char DestinationEndpoint); - int getClusterID(); + unsigned int getClusterID(); - void setClusterID(int ClusterID); + void setClusterID(unsigned int ClusterID); - int getProfileID(); + unsigned int getProfileID(); - void setProfileID(int ProfileID); + void setProfileID(unsigned int ProfileID); }; #endif \ No newline at end of file