Digi XBee(R) ANSI C Host Library
pxbee_ota_server.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2019 Digi International Inc.,
3  * All rights not expressly granted are reserved.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
7  * You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Digi International Inc., 9350 Excelsior Blvd., Suite 700, Hopkins, MN 55343
10  * ===========================================================================
11  */
12 
27 #ifndef PXBEE_OTA_SERVER_H
28 #define PXBEE_OTA_SERVER_H
29 
30 #include "wpan/aps.h"
31 #include "zigbee/zcl.h"
32 
34 
44 int pxbee_ota_server_cmd( const wpan_envelope_t FAR *envelope,
45  void FAR *context);
46 
72 const char *xbee_update_firmware_ota( const wpan_envelope_t FAR *envelope,
73  void FAR *context);
74 
81 #define PXBEE_OTA_CMD_SERVER_CLUST_ENTRY(flag) \
82  { DIGI_CLUST_PROG_XBEE_OTA_UPD, pxbee_ota_server_cmd, NULL, \
83  (flag) | WPAN_CLUST_FLAG_SERVER | WPAN_CLUST_FLAG_NOT_ZCL }
84 
86 
87 // If compiling in Dynamic C, automatically #use the appropriate C file.
88 #ifdef __DC__
89  #use "pxbee_ota_server.c"
90 #endif
91 
92 #endif // PXBEE_OTA_SERVER_H defined
93 
#define FAR
On platforms with "far" pointers, define to the proper keyword; empty definition if not required...
Definition: platform.h:396
#define XBEE_BEGIN_DECLS
Macro defined to.
Definition: platform.h:41
int pxbee_ota_server_cmd(const wpan_envelope_t FAR *envelope, void FAR *context)
Cluster command to initiate firmware updates.
Definition: pxbee_ota_server.c:30
Header for implementation of ZigBee Cluster Library.
Cluster/Endpoint layer for WPAN networks (ZigBee and DigiMesh).
const char * xbee_update_firmware_ota(const wpan_envelope_t FAR *envelope, void FAR *context)
Application needs to provide this function as a method of receiving firmware updates over-the-air wit...
#define XBEE_END_DECLS
Macro defined to.
Definition: platform.h:42
The "envelope" is used to gather all necessary information about a given frame on the network...
Definition: aps.h:40