Advertisement
Guest User

Untitled

a guest
Feb 9th, 2021
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. void send_face_list(WebsocketsClient &client)
  2. {
  3.   client.send("delete_faces"); // tell browser to delete all faces
  4.   face_id_node *head = st_face_list.head;
  5.   char add_face[64];
  6.   for (int i = 0; i < st_face_list.count; i++) // loop current faces
  7.   {
  8.     sprintf(add_face, "listface:%s", head->id_name);
  9.     Serial.println(add_face);
  10.     client.send("listface:anonymous"); //send face to browser
  11.     head = head->next;
  12.   }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement