Author
Topic: GSD command question (Read 2468 times)

I have a question about a particular command: #246 Set Device Data. I'm trying to use it in a couple of drivers to obtain information and update LMCE. In this case, I'm grabbing the model information from a thermostat to update Device Data 233 (Model), so that could be used in conditional logic in the driver to use or disable enhanced features, depending on model.

The model info retrieved looks like this "CT80 Rev B2 V1.03" (including the quotes). The commented out line in the code below strips the quotes, the line below it leaves them intact.

Thanks for pointing that out. I'd been looking at pretty much every other GSD template I could find, but missed that one. DOH! I'd been sending to -1000 as that's what most of the code templates do, including some others that do work for me. Now that you've pointed out that code sample, specifically this bit:

Once I get it all working, I'll write up some more re-usable functions like ddamron did in his drivers. I've been studying his EZServe and PLM drivers, and using them as the basis for my ISY driver; I'm taking a break from the ISY driver to work on something simpler (like the thermostat) to figure out some of these more complicated LMCE details like modifying other LMCE controlled data, and the whole sqlcvs thing.

In my case, I don't know that much about C++ programming, but I know enough about shell scripting, and have played with enough other high-level languages like Perl, Visual Basic, and Python that learning Ruby has a lower barrier to playing with LMCE than my trying to learn C++ AND how LMCE internals work. So, the GSD drivers give me the ability to get my hardware into the LMCE ecosystem, and then I can learn C++ at my leisure for Arduino and LMCE stuff.