VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
iot-block.h File Reference
Include dependency graph for iot-block.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vitroio::sdk::IoTBlock
 Class is an API for creating and sending IoT Blocks. More...
 

Namespaces

namespace  vitroio
 The namespace contains all of components of vitro-shard-sdk and components based on the sdk. It is suggested to place types inherited from the sdk components in this namespace e.g. implementations of sensors drivers/interfaces.
 
namespace  vitroio::sdk
 The namespace contains all of components defined by vitro-shard-sdk.
 

Macros

#define AES_BLOCK_SIZE   16
 
#define AES_IV_LEN   16
 
#define PARAMETER_ID_SIZE   2
 Size of parameter Id field. More...
 
#define NODE_ID_SIZE   9
 Size of node Id field. More...
 
#define TIMESTAMP_SIZE   4
 Size of timestamp. More...
 
#define SHA256_DIGEST_SIZE   32
 Size of SHA256 digest. More...
 
#define ECDSA_SIGNATURE_SIZE   64
 Size of ECDSA signature. More...
 
#define METADATA_SIZE
 Additional data to be sent with blob. More...
 
#define MAX_BLOCK_SIZE   (7 * 255)
 
#define MAX_PD_SIZE   (MAX_BLOCK_SIZE - METADATA_SIZE)
 
#define DATA_BLOB_SIZE   AES_IV_LEN + DATA_TO_ENCRYPT_SIZE
 
#define CAN_DATA_SIZE   147
 

Macro Definition Documentation

◆ AES_BLOCK_SIZE

#define AES_BLOCK_SIZE   16

◆ AES_IV_LEN

#define AES_IV_LEN   16

◆ CAN_DATA_SIZE

#define CAN_DATA_SIZE   147

◆ DATA_BLOB_SIZE

#define DATA_BLOB_SIZE   AES_IV_LEN + DATA_TO_ENCRYPT_SIZE

◆ ECDSA_SIGNATURE_SIZE

#define ECDSA_SIGNATURE_SIZE   64

Size of ECDSA signature.

◆ MAX_BLOCK_SIZE

#define MAX_BLOCK_SIZE   (7 * 255)

◆ MAX_PD_SIZE

#define MAX_PD_SIZE   (MAX_BLOCK_SIZE - METADATA_SIZE)

◆ METADATA_SIZE

#define METADATA_SIZE
Value:
#define NODE_ID_SIZE
Size of node Id field.
Definition: iot-block.h:23
#define PARAMETER_ID_SIZE
Size of parameter Id field.
Definition: iot-block.h:17
#define TIMESTAMP_SIZE
Size of timestamp.
Definition: iot-block.h:29
#define SHA256_DIGEST_SIZE
Size of SHA256 digest.
Definition: iot-block.h:35
#define ECDSA_SIGNATURE_SIZE
Size of ECDSA signature.
Definition: iot-block.h:41

Additional data to be sent with blob.

◆ NODE_ID_SIZE

#define NODE_ID_SIZE   9

Size of node Id field.

◆ PARAMETER_ID_SIZE

#define PARAMETER_ID_SIZE   2

Size of parameter Id field.

◆ SHA256_DIGEST_SIZE

#define SHA256_DIGEST_SIZE   32

Size of SHA256 digest.

◆ TIMESTAMP_SIZE

#define TIMESTAMP_SIZE   4

Size of timestamp.