4.2. No Common C API
Something that surprises many people new to ZigBee is the fact that there is no standard C API for it. What? How can ZigBee be a standard, if there is no standard for the API?
In the ANSI C standard,
strlen() computes the length of a string in characters, and developers can count on this function being available in the C library. In the POSIX standard, the function
open() opens a device or file and returns a handle, and its counterpart,
close(), closes that device or file based on the handle. The calls work the same (or nearly so) regardless of the platform.
Not so with ZigBee. The
only thing that the ZigBee standard requires is correct over-the-air behavior. To the ZigBee Alliance testing houses, a platform or product is a ...
Get Zigbee Wireless Networking now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.