Support sending an image file to TagoIO Server #61780
Replies: 2 comments
-
Hi @SinghKarminder , You can find all information about how to use device send data at Tago.IO documentation. The explanation is there about the API and their endpoints. I recommend you look for Arduino samples which are quite simple and easy to follow. You can find more info about HTTP here, for instance. The current application sends simple raw data to some endpoint and I don't want to change that. You are free to submit another PR based the current implementation which shows how to submit an image. I think it is better not mix topics. If you dedicate your effort to develop using a PC to cloud approach, the process will be easy for you and it is easy to implement. Once you understood all details and how your application should like it won't be difficult to replicate on Zephyr. |
Beta Was this translation helpful? Give feedback.
-
Hi @nandojve, Thanks for your response. I will try to follow your instructions. |
Beta Was this translation helpful? Give feedback.
-
Dear Developers
I want to send an image file to TagoIO Server by modifying the repository made by you (Zephyr/samples/net/cloud/tagoio_http_post).
The following function "tagoio_http_push" can only send the text data to tagoio server.
Function: tagoio_http_push
**int tagoio_http_push(struct tagoio_context *ctx, http_response_cb_t resp_cb)
{
struct http_request req;
int ret;
}**
The function for ctx-> payload is as follows:
**Function:
static int collect_data(void)
{
#define lower 20000
#define upper 100000
#define base 1000.00f
}**
But I want to send the image file to TagoIo Server.
Can you please suggest the required changes that can I made to send the image file to TagoIo Server.
Is there any separate function is required to push the image.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions