Hello to all!
I have this struct
typedef struct attribute((packed)) _MQTTRAWDATA
{
BYTE IDsens;
WORD NumSamples;
WORD SampleX[16];
WORD SampleY[16];
WORD SampleZ[16];
WORD BlockCounter;
WORD Crc;
}MQTTRAWDATA;
I have created this ADI struct
/*------------------------------------------------------------------------------
** Structured ADI #120
**------------------------------------------------------------------------------
/
static const AD_StructDataType appl_AdiWriteStructMQTTRawData[] =
{
/ Index: 0 / { “MQTT_IDsens”, ABP_UINT8, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.IDsens, NULL } } },
/ Index: 1 / { “MQTT_NumSamples”, ABP_UINT16, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.NumSamples, NULL } } },
/ Index: 2 / { “MQTT_SampleX”, ABP_UINT16, 16, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.SampleX[0], NULL } } },
/ Index: 3 / { “MQTT_SampleY”, ABP_UINT16, 16, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.SampleY[0], NULL } } },
/ Index: 4 / { “MQTT_SampleZ”, ABP_UINT16, 16, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.SampleZ[0], NULL } } },
/ Index: 5 / { “MQTT_BlockCounter”, ABP_UINT16, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.BlockCounter, NULL } } },
/ Index: 6 */ { “MQTT_Crc”, ABP_UINT16, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.Crc, NULL } } }
};
and at the end
const AD_AdiEntryType APPL_asAdiEntryList[] =
{
{ 120, “MQTT_RawData”, DONT_CARE, 7, APPL_WRITE_MAP_READ_ACCESS_DESC, { { NULL, NULL } }, appl_AdiWriteStructMQTTRawData }
};
But when I open a parameter Web page of the Compact Com C40 I see the the "SampleX[16] are not displayed.
Where do I’m in wrong?