zephyr/lib/updatehub/updatehub_device.h
Gerson Fernando Budke 6238e52062 lib: updatehub: Refact to use bin2hex
Use bin2hex instead inline conversion.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
2020-04-17 10:09:56 +03:00

19 lines
396 B
C

/*
* Copyright (c) 2018 O.S.Systems
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __UPDATEHUB_DEVICE_H__
#define __UPDATEHUB_DEVICE_H__
#include <zephyr.h>
#include <drivers/hwinfo.h>
#define DEVICE_ID_BIN_MAX_SIZE 64
#define DEVICE_ID_HEX_MAX_SIZE ((DEVICE_ID_BIN_MAX_SIZE * 2) + 1)
bool updatehub_get_device_identity(char *id, int id_max_len);
#endif /* __UPDATEHUB_DEVICE_H__ */