2018-04-23 22:50:01 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 O.S.Systems
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __UPDATEHUB_DEVICE_H__
|
|
|
|
#define __UPDATEHUB_DEVICE_H__
|
|
|
|
|
|
|
|
#include <zephyr.h>
|
2019-06-26 03:53:53 +08:00
|
|
|
#include <drivers/hwinfo.h>
|
2018-04-23 22:50:01 +08:00
|
|
|
|
2020-04-05 08:10:30 +08:00
|
|
|
#define DEVICE_ID_BIN_MAX_SIZE 64
|
|
|
|
#define DEVICE_ID_HEX_MAX_SIZE ((DEVICE_ID_BIN_MAX_SIZE * 2) + 1)
|
2018-04-23 22:50:01 +08:00
|
|
|
|
|
|
|
bool updatehub_get_device_identity(char *id, int id_max_len);
|
|
|
|
|
|
|
|
#endif /* __UPDATEHUB_DEVICE_H__ */
|