Sensor application for transmitting humidity values
git clone https://git.8pit.net/feucht.git
1#ifndef FEUCHT_HOST 2#error "FEUCHT_HOST was not defined." 3#endif 4 5#ifndef FEUCHT_PORT 6#error "FEUCHT_PORT was not defined" 7#endif 8 9#ifndef FEUCHT_INTERVAL10#define FEUCHT_INTERVAL 6011#endif1213/**14 * Initialize the protocol for a protocol server located at the given15 * remote address.16 *17 * @param remote Address of the protocol server.18 * @return Negative errno value on failure and zero on success.19 */20int init_protocol(ipv6_addr_t *remote);2122/**23 * Free all resources associated with the protocol.24 */25void free_protocol(void);2627/**28 * Transmit a new value to the protocol server.29 *30 * @param buf Pointer to a memory location containing the data which31 * should be transmitted to the server.32 * @param count Amount of bytes that should be transmitted.33 * @return Negative errno value on failure and zero on success.34 */35int update_humidity(char *buf, size_t count);