![](/media/cache/profiles/debfdc81854eac26ec993b55a659c6e1.jpg.50x50_q85.jpg)
mbed client lightswitch demo
Dependencies: mbed Socket lwip-eth lwip-sys lwip
Fork of mbed-client-classic-example-lwip by
mbed-client/source/include/nsdlaccesshelper.h@11:cada08fc8a70, 2016-06-09 (annotated)
- Committer:
- mbedAustin
- Date:
- Thu Jun 09 17:08:36 2016 +0000
- Revision:
- 11:cada08fc8a70
Commit for public Consumption
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbedAustin | 11:cada08fc8a70 | 1 | /* |
mbedAustin | 11:cada08fc8a70 | 2 | * Copyright (c) 2015 ARM Limited. All rights reserved. |
mbedAustin | 11:cada08fc8a70 | 3 | * SPDX-License-Identifier: Apache-2.0 |
mbedAustin | 11:cada08fc8a70 | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
mbedAustin | 11:cada08fc8a70 | 5 | * not use this file except in compliance with the License. |
mbedAustin | 11:cada08fc8a70 | 6 | * You may obtain a copy of the License at |
mbedAustin | 11:cada08fc8a70 | 7 | * |
mbedAustin | 11:cada08fc8a70 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbedAustin | 11:cada08fc8a70 | 9 | * |
mbedAustin | 11:cada08fc8a70 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbedAustin | 11:cada08fc8a70 | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
mbedAustin | 11:cada08fc8a70 | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbedAustin | 11:cada08fc8a70 | 13 | * See the License for the specific language governing permissions and |
mbedAustin | 11:cada08fc8a70 | 14 | * limitations under the License. |
mbedAustin | 11:cada08fc8a70 | 15 | */ |
mbedAustin | 11:cada08fc8a70 | 16 | #ifndef NSDL_ACCESS_HELPER_H |
mbedAustin | 11:cada08fc8a70 | 17 | #define NSDL_ACCESS_HELPER_H |
mbedAustin | 11:cada08fc8a70 | 18 | |
mbedAustin | 11:cada08fc8a70 | 19 | #include "include/m2mnsdlinterface.h" |
mbedAustin | 11:cada08fc8a70 | 20 | |
mbedAustin | 11:cada08fc8a70 | 21 | extern M2MNsdlInterface *__nsdl_interface; |
mbedAustin | 11:cada08fc8a70 | 22 | |
mbedAustin | 11:cada08fc8a70 | 23 | #ifdef __cplusplus |
mbedAustin | 11:cada08fc8a70 | 24 | extern "C" { |
mbedAustin | 11:cada08fc8a70 | 25 | #endif |
mbedAustin | 11:cada08fc8a70 | 26 | |
mbedAustin | 11:cada08fc8a70 | 27 | uint8_t __nsdl_c_callback(struct nsdl_s * nsdl_handle, |
mbedAustin | 11:cada08fc8a70 | 28 | sn_coap_hdr_s *received_coap_ptr, |
mbedAustin | 11:cada08fc8a70 | 29 | sn_nsdl_addr_s *address, |
mbedAustin | 11:cada08fc8a70 | 30 | sn_nsdl_capab_e nsdl_capab); |
mbedAustin | 11:cada08fc8a70 | 31 | void *__nsdl_c_memory_alloc(uint16_t size); |
mbedAustin | 11:cada08fc8a70 | 32 | void __nsdl_c_memory_free(void *ptr); |
mbedAustin | 11:cada08fc8a70 | 33 | uint8_t __nsdl_c_send_to_server(struct nsdl_s * nsdl_handle, |
mbedAustin | 11:cada08fc8a70 | 34 | sn_nsdl_capab_e protocol, |
mbedAustin | 11:cada08fc8a70 | 35 | uint8_t *data_ptr, |
mbedAustin | 11:cada08fc8a70 | 36 | uint16_t data_len, |
mbedAustin | 11:cada08fc8a70 | 37 | sn_nsdl_addr_s *address_ptr); |
mbedAustin | 11:cada08fc8a70 | 38 | uint8_t __nsdl_c_received_from_server(struct nsdl_s * nsdl_handle, |
mbedAustin | 11:cada08fc8a70 | 39 | sn_coap_hdr_s *coap_header, |
mbedAustin | 11:cada08fc8a70 | 40 | sn_nsdl_addr_s *address_ptr); |
mbedAustin | 11:cada08fc8a70 | 41 | void __nsdl_c_bootstrap_done(sn_nsdl_oma_server_info_t *server_info_ptr); |
mbedAustin | 11:cada08fc8a70 | 42 | void *__socket_malloc( void * context, size_t size); |
mbedAustin | 11:cada08fc8a70 | 43 | void __socket_free(void * context, void * ptr); |
mbedAustin | 11:cada08fc8a70 | 44 | |
mbedAustin | 11:cada08fc8a70 | 45 | #ifdef __cplusplus |
mbedAustin | 11:cada08fc8a70 | 46 | } |
mbedAustin | 11:cada08fc8a70 | 47 | #endif |
mbedAustin | 11:cada08fc8a70 | 48 | |
mbedAustin | 11:cada08fc8a70 | 49 | #endif // NSDL_ACCESS_HELPER_H |