I am trying to add more channel or multiple channel selection. but stuck
Code: Select all
channel.setType(SUPLA_CHANNELTYPE_WEIGHTSENSOR);
channel.setDefault(SUPLA_CHANNELFNC_WEIGHTSENSOR);Code: Select all
channel.setType(SUPLA_CHANNELTYPE_WEIGHTSENSOR);
channel.setDefault(SUPLA_CHANNELFNC_WEIGHTSENSOR);Thankyou klew actually i interpreted wrong i wanted to add more function to channel and you made me correct, will try to add more function to channel. Let me see the examplesklew wrote: Mon Nov 06, 2023 8:08 pm You have to add more instances of classes that represent different channel type.
Channel type can't be changed. You can only change channel function (some channel types support one function, some more).
In examples you can find programs with multiple channels.