-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhmkit_core_api_callback.c
125 lines (104 loc) · 3.54 KB
/
hmkit_core_api_callback.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#include "hmkit_core_api_callback.h"
#include "hmkit_core_cert.h"
#include <string.h>
void hmkit_core_api_callback_init(void)
{
}
void hmkit_core_api_callback_clock(void)
{
}
void hmkit_core_api_callback_ping(void)
{
}
void hmkit_core_api_callback_entered_proximity(uint64_t appContxtId, hmkit_core_device_t *device)
{
BTUNUSED(device);
BTUNUSED(appContxtId);
//TODO add also app id to device
}
void hmkit_core_api_callback_proximity_measured(uint64_t appContxtId, hmkit_core_device_t *device, uint8_t receiver_count, hmkit_core_receiver_t *receivers)
{
BTUNUSED(device);
BTUNUSED(receiver_count);
BTUNUSED(receivers);
BTUNUSED(appContxtId);
}
void hmkit_core_api_callback_exited_proximity(uint64_t appContxtId, hmkit_core_device_t *device)
{
BTUNUSED(device);
BTUNUSED(appContxtId);
}
void hmkit_core_api_callback_command_incoming(uint64_t appContxtId, hmkit_core_device_t *device, uint8_t content_type, uint8_t *data, uint32_t length, uint8_t *respID, uint16_t respID_size, uint8_t version)
{
BTUNUSED(device);
BTUNUSED(content_type);
BTUNUSED(data);
BTUNUSED(length);
BTUNUSED(appContxtId);
}
void hmkit_core_api_callback_error_command_incoming(uint64_t appContxtId, hmkit_core_device_t *device, uint8_t command, uint8_t errorType)
{
BTUNUSED(device);
BTUNUSED(command);
BTUNUSED(errorType);
BTUNUSED(appContxtId);
}
void hmkit_core_api_callback_command_response(uint64_t appContxtId, hmkit_core_device_t *device, uint8_t content_type, uint8_t *data, uint32_t length, uint8_t *respID, uint16_t respID_size, uint8_t version){
BTUNUSED(device);
BTUNUSED(content_type);
BTUNUSED(data);
BTUNUSED(length);
BTUNUSED(appContxtId);
}
void hmkit_core_api_callback_command_response_error(uint64_t appContxtId, hmkit_core_device_t *device, uint8_t errortype)
{
BTUNUSED(device);
BTUNUSED(errortype);
BTUNUSED(appContxtId);
}
uint32_t hmkit_core_api_callback_get_device_certificate_failed(uint64_t appContxtId, hmkit_core_device_t *device, uint8_t *nonce)
{
BTUNUSED(device);
BTUNUSED(nonce);
BTUNUSED(appContxtId);
return 0;
}
void hmkit_core_api_callback_access_certificate_registered(uint64_t appContxtId, hmkit_core_device_t *device, uint8_t *public_key, uint8_t error)
{
BTUNUSED(device);
BTUNUSED(public_key);
BTUNUSED(error);
}
uint32_t hmkit_core_api_callback_pairing_requested(uint64_t appContxtId, hmkit_core_device_t *device){
BTUNUSED(device);
return 0;
}
void hmkit_core_api_callback_telematics_command_incoming(uint64_t appContxtId, hmkit_core_device_t *device, uint8_t id, uint8_t content_type, uint32_t length, uint8_t *data, uint8_t *respID, uint16_t respID_size, uint8_t version){
BTUNUSED(device);
BTUNUSED(id);
BTUNUSED(content_type);
BTUNUSED(length);
BTUNUSED(data);
BTUNUSED(appContxtId);
}
uint32_t hmkit_core_api_callback_get_current_date_time(uint8_t *day, uint8_t *month, uint8_t *year, uint8_t *minute, uint8_t *hour){
BTUNUSED(day);
BTUNUSED(month);
BTUNUSED(year);
BTUNUSED(minute);
BTUNUSED(hour);
return 0;
}
void hmkit_core_api_callback_revoke_response(uint64_t appContxtId, hmkit_core_device_t *device, uint8_t *data, uint16_t length, uint8_t status){
BTUNUSED(device);
BTUNUSED(data);
BTUNUSED(length);
BTUNUSED(status);
BTUNUSED(appContxtId);
}
void hmkit_core_api_callback_revoke_incoming(uint64_t appContxtId, hmkit_core_device_t *device, uint8_t *data, uint16_t *length){
BTUNUSED(device);
BTUNUSED(data);
BTUNUSED(length);
BTUNUSED(appContxtId);
}