blob: a48319526591cd1e290e989e985e101edda0d061 [file] [log] [blame]
/*
* Copyright (c) 2020 Gerson Fernando Budke <nandojve@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#define TAGOIO_SOCKET_MAX_BUF_LEN 1280
struct tagoio_context {
int sock;
uint8_t payload[TAGOIO_SOCKET_MAX_BUF_LEN];
uint8_t resp[TAGOIO_SOCKET_MAX_BUF_LEN];
};
int tagoio_connect(struct tagoio_context *ctx);
int tagoio_http_push(struct tagoio_context *ctx,
http_response_cb_t resp_cb);