typedef struct { uint8_t topic = "hw_ver"; uint8_t minor; uint8_t major; } hw_ver_t; typedef struct { uint8_t topic = "fw_ver"; uint8_t minor; uint8_t major; } fw_ver_t; typedef struct { uint8_t topic = "alive"; bool flag; } alive_t; typedef struct { uint8_t topic = "vcell"; uint32_t vcell; } vcell_t; typedef struct { uint8_t topic = "rom"; uint8_t rom; } rom_t; typedef struct { uint8_t topic = "ota"; bool ota; } ota_t; typedef struct{ hw_ver_t hw_ver; fw_ver_t fw_ver; alive_t alive; vcell_t vcell; soc_t soc; rom_t rom; ota_t ota; ssid_t ssid; bssid_t bssid; rssi_t rssi; } ideasX_topics_t; typedef struct { uint8_t topic = "ota"; uint32_t* function; } ideasX_command_ota_t; typedef struct { uint8_t topic = "shutdown"; uint32_t* function; } ideasX_command_shutdown_t;