Issue #268 has been updated by Philipp  Buluschek.

Status changed from Resolved to Closed

Reviewed code - looks good. Closing.
----------------------------------------
Improvement #268: Use unsigned values in UUID
http://zb4o.aaloa.org/redmine/issues/268#change-684

Author: Philipp  Buluschek
Status: Closed
Priority: Low
Assignee: Stefano Lenzi
Category: zigbee.basedriver
Target version: org.aaloa.zb4osgi.zigbee.basedriver-0.8.0
Has a patch: No
Has license agreement signed: No


The UUID of a devices is composed of values which should all be treated as 
unsigned - else a strange minus sign (-) appears in the ID (for example, when 
using endpoints above 128)

Correct the UUID generating method in @ZigBeeDeviceImpl@ to
<pre>
    private String generateUUID() {
        StringBuffer sb_uuid = new StringBuffer()
                        .append(profileId & 0xFFFF).append(":")
                .append(deviceId & 0xFFFF).append(":")
                .append(deviceVersion & 0xFF).append("@")
                .append(node.getIEEEAddress()).append(":")
                .append(endPointAddress & 0xFF);
        return sb_uuid.toString();
    }
</pre>



-- 
DO NOT ANSWER TO THIS E-MAIL ADDRESS, NO ONE WILL READ IT. PLEASE WRITE TO 
[email protected]
ZigBee 4 OSGi - Redmine E-Mail Notificatioon
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://zb4o.aaloa.org/redmine
_______________________________________________
Dev mailing list
[email protected]
http://zb4osgi.aaloa.org/mailman/listinfo/dev

Reply via email to