Example program with HTTPServer and sensor data streaming over TCPSockets, using Donatien Garnier's Net APIs and services code on top of LWIP. Files StreamServer.h and .cpp encapsulate streaming over TCPSockets. Broadcast is done by sendToAll(), and all incoming data is echoed back to the client. Echo code can be replaced with some remote control of the streaming interface. See main() that shows how to periodically send some data to all subscribed clients. To subscribe, a client should open a socket at <mbed_ip> port 123. I used few lines in TCL code to set up a quick sink for the data. HTTP files are served on port 80 concurrently to the streaming.
mib_external_node Struct Reference
derived node, has access functions for mib object in external memory or device using 'tree_level' and 'idx', with a range 0 . More...
#include <snmp_structs.h>
Data Fields | |
void * | addr_inf |
points to an extenal (in memory) record of some sort of addressing information, passed to and interpreted by the funtions below | |
u8_t | tree_levels |
tree levels under this node | |
u16_t(* | level_length )(void *addr_inf, u8_t level) |
number of objects at this level | |
s32_t(* | ident_cmp )(void *addr_inf, u8_t level, u16_t idx, s32_t sub_id) |
compares object sub identifier with external id return zero when equal, nonzero when unequal | |
void(* | get_object_def_q )(void *addr_inf, u8_t rid, u8_t ident_len, s32_t *ident) |
async Questions | |
void(* | get_object_def_a )(u8_t rid, u8_t ident_len, s32_t *ident, struct obj_def *od) |
async Answers | |
void(* | get_object_def_pc )(u8_t rid, u8_t ident_len, s32_t *ident) |
async Panic Close (agent returns error reply, e.g. |
Detailed Description
derived node, has access functions for mib object in external memory or device using 'tree_level' and 'idx', with a range 0 .
. (level_length() - 1)
Definition at line 192 of file snmp_structs.h.
Field Documentation
void* addr_inf |
points to an extenal (in memory) record of some sort of addressing information, passed to and interpreted by the funtions below
Definition at line 206 of file snmp_structs.h.
void(* get_object_def_a)(u8_t rid, u8_t ident_len, s32_t *ident, struct obj_def *od) |
async Answers
Definition at line 222 of file snmp_structs.h.
void(* get_object_def_pc)(u8_t rid, u8_t ident_len, s32_t *ident) |
async Panic Close (agent returns error reply, e.g.
used for external transaction cleanup)
Definition at line 228 of file snmp_structs.h.
void(* get_object_def_q)(void *addr_inf, u8_t rid, u8_t ident_len, s32_t *ident) |
async Questions
Definition at line 217 of file snmp_structs.h.
compares object sub identifier with external id return zero when equal, nonzero when unequal
Definition at line 213 of file snmp_structs.h.
u16_t(* level_length)(void *addr_inf, u8_t level) |
number of objects at this level
Definition at line 210 of file snmp_structs.h.
u8_t tree_levels |
tree levels under this node
Definition at line 208 of file snmp_structs.h.
Generated on Tue Jul 12 2022 21:10:27 by 1.7.2