the_twelite
TWENET 利用の中核クラス (mwx::twenet)
概要
void setup() {
...
the_twelite
<< TWENET::appid(APP_ID)
<< TWENET::channel(CHANNEL)
<< TWENET::rx_when_idle();
...
the_twelite.begin();
}// シリアル番号を得る
uint32_t u32hwser = the_twelite.get_hw_serial();
// チャネルを 11 に設定する
the_twelite.change_channel(11);
// 1秒のスリープを行う
the_twelite.sleep(1000);
// リセットを行う
the_twelite.reset_system();メソッド
<<演算子 (設定)
<<演算子 (設定)TWENET::appid(uint32_t id)
TWENET::channel(uint8_t ch)
TWENET::tx_power(uint8_t pw)
TWENET::rx_when_idle(uint8_t bEnable)
begin()
例
change_channel()
get_channel_phys()
get_hw_serial()
sleep()
is_wokeup_by_dio()
is_wokeup_by_wktimer()
ビヘイビア
use<B>()
クラスオブジェクト
tx_status
is_complete()
is_success()
receiver
available()
read()
最終更新