All of the devices used by TellStick must be predefined before they can be used in any software. Under all platforms this can be done with the software TelldusCenter but under Linux this can also be done by editing the file /etc/tellstick.conf with your favorite text editor.
Having the devices preconfigured is an advantage to both the developer and the end user.
- The end user might use more then one program for controling his/hers TellStick. By having the devices preconfigured he/she doesn't have to reconfigure the same devices twice. If some settings changes in one of the devices, this change will affect all softwares using Telldus TellStick SDK.
- Telldus is adding support for new devices constantly. If every software defines it's own devices it will also mean that the developer has to keep it's software up to date with all the new devices and settings Telldus implements. By querying Telldus Tellstick SDK all the new devices will be available automaticly to the end user.
int id = tdAddDevice();
tdSetName(id, "Dummy device");
tdSetDeviceParameter(id, "house", "K");
tdSetDeviceParameter(id, "unit", "1");
Wickedtunez wrote:Is there any documentation on the available protocols, models etc. Would it be possible to create enums instead of those String values? I cannot find this in the sourcecode.
TDDevice device = new TDDeviceNexa("LivingRoom", "K", 3);
Users browsing this forum: No registered users and 1 guest