Just like our docs says:
https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/README.md
setChannel sets given channel to given value, so it will not affect P8 directly if you don't set P8 role and channel, you need to assign a channel to P8 and also set it to Relay (or Rel_n, or LED, or LED_n, etc), in this case, channel 8, but in reality it can be any channel ...
Helpful post? Buy me a coffee.
https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/README.md
setChannel sets given channel to given value, so it will not affect P8 directly if you don't set P8 role and channel, you need to assign a channel to P8 and also set it to Relay (or Rel_n, or LED, or LED_n, etc), in this case, channel 8, but in reality it can be any channel ...