Version FC

Dependencies:   DmTftLibrary eeprom SX1280Lib filesystem mbed

Fork of MSNV2-Terminal_V1-5 by Francis CHATAIN

IOTDataMessagePart.hpp

Committer:
FCH_31
Date:
2018-10-22
Revision:
41:5a436163dddf
Parent:
24:92c30dabfda4

File content as of revision 41:5a436163dddf:

#ifndef __IOTDATAMESSAGEPART_HPP__
#define __IOTDATAMESSAGEPART_HPP__

#include <vector>

#include "Context.h"

#include "DataMessagePart.hpp"
class ChannelValue;


namespace misnet {
    class IOTDataMessagePart;
}


// This class describes the IOT data part of a message.
// It consists in a sequence of channel value blocks, one per channel.
// A 16-bit MAC is appended after the last channel value block.
class misnet::IOTDataMessagePart : virtual DataMessagePart {
    public:

    private:
        vector<ChannelValue>        _channelValues; // Vector of channel values
        uint16_t                    _mic;           // Message Authentication Code
};

#endif  // __IOTDATAMESSAGEPART_HPP__