Without this fix, I get:
openzwave/cpp/hidapi/libusb/hid.c:372:18: error: passing
'char **' to parameter of type 'const char **' discards qualifiers in nested
pointer types [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
res = iconv(ic, &inptr, &inbytes, &outptr, &outbytes);
^~~~~~
/usr/include/iconv.h:56:47: note: passing argument to parameter here
size_t iconv(iconv_t, const char ** __restrict,
from FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
node number as an argument. All formatting is now done in the log object
instead of being scattered around. Also added a new helper routine that
takes a Msg object and returns the target node id. In the case of no
message it returns 0 and no node number will be output in the log. See
Driver::GetNodeNumber.
Not all the classes use the new Log::Write yet.
Retreive SUC node id. Just uncomment existing code.
Add error checking to pthreads mutex calls.
Don't do the Query_Wakeup phase for FLiRS nodes as they don't seem to
respond to wakeup class messages and they will respond to others.
Add missing LockNodes/ReleaseNodes around node array scan when removing
controller that returns 0 for node number.
Added tracking and returning driver specific message count and error data. see Manager::GetDriverStatistics
Random formatting changes for consistency.
Class SensorMultilevel will use multiple indexes for multiple sensors.
Node::GetNeighbors will only return valid data. Wait for proper query stage to complete.
On Driver shutdown stop threads then remove controller object.
Add extra comments to Driver::IsControllerCommand so we can better track commands.
Update Mac OS X example Main.cpp to be consistent with Linux version. Handle more notifications
and add a thread to wait for query completion.
Add statistics print out to both Linux and Mac OS X example apps.
Fix Mac hidapi to terminate its background CFRunLoop upon hid_close.
necessary.
Add missing ioctls for Linux HID support. Remove these when a newer
linux/hidraw.h is available.
Add more defensive checks in device add/remove processing. Not all
controllers fill in the node field.
Provide group notifications on initial group discovery.
Add Aeon Labs Home Energy Monitor device defintion as well as update device
info for Everspring SM103.
Make sure ACT Zir010 has default values specified in configuration for
initial case.
using the raw hid device /dev/hidraw instead of libusb.a access.
NOTE: the hidapi raw hid access requires special ioctls for feature
requests, HIDIOCGFEATURE and HIDIOCSFEATURE. These calls are currently
commented out so thel library will compile. This still needs to be
addressed.
Currently the most compatible firmware is ThinkStick v4.53; it emits several errors during initialization but afterwards seems to communicate normally with other ZWave devices.
HID support by default is not enabled in the MinOZW sample application. You will need to swap the commented call to Manager::Get()->AddDriver() line in MinOZW main() so that it uses the HID driver instead of the serial one.