Open rscott78 opened 7 years ago
Do I read this right that the value type is an int, but you send a byte? The types must match.
How are you calling the API that gets you in here?
Sure... but that's what's in the sample code provided with the project (i.e, if you ran the sample OZWForm project you'd run into the same problem). Even when I change it to a byte, it still fails on the following IF statement.
I'm trying to use the sample app to evaluate this library for a project of mine. I'm finding that the app won't power on/off my devices.
I've tracked it down to this function:
Manager.cpp
First, when the SetValue is called
m_manager.SetValue(new ZWValueId(m_homeId, m_rightClickNode, ZWValueGenre.Basic, 0x20, 0x01, 0x00, ZWValueType.Byte, 0x00), 0xFF);
it fails on the first if statement in the above method because the value is passed as a Byte.When I bypass that first if statement, it fails on the if statement that says
if( ValueInt* value = static_cast<ValueInt*>( driver->GetValue( _id ) ) )
(invalid value id passed).Is this a configuration problem with my devices?