🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to send fb->buf over websocket?

    Modules
    1
    1
    4.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      joelhoro
      last edited by joelhoro

      When I do

      camera_fb_t * fb = esp_camera_fb_get();

      It looks like the fb->buf[4] == '\0', but fb->len is in the 5000. When I try sending fb->buf through a websocket, only the first 4 characters get sent. Anyone knows how to send the whole fb->buf instead?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post