> For the complete documentation index, see [llms.txt](https://mwm5.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mwm5.twelite.info/references/parser/twefmt/packet-types/twepacketpal/palbase/twearia.md).

# TweARIA

```cpp
struct TweARIA : public PalBase {
	static const uint8_t U8VARS_CT = ; // センサー数
	static const uint32_t STORE_COMP_MASK =  (1 << U8VARS_CT) - 1; // 電圧と開閉状況、ADC1、温湿度

	uint16_t u16Volt;	// 電源電圧
	uint16_t u16Adc1;	// ADC1電圧

	uint8_t u8MagStat;  // 開閉状況 (0:磁石が遠い, 1/2:磁石検出)
	uint8_t bMagRegularTransmit; // 定期送信の時に 1, 磁石検出では 0

	int16_t i16Temp;  // 温度 (x100)
	uint16_t u16Humd; // 湿度 (x100 %)
};
```

※ パケット間の各サンプルの連続性を確認するには、パケットのシーケンス番号の抜けが無いことを確認してください。
