git checkout -b feature/<your_branch_name>
git checkout <your_branch_name>
git rebase origin/main
#include "driviers/<driver_name>.h"
#include <sys/socket.h>
#include <netinet/ip.h>
#include "types.h"
...
int sock = socket(AF_INET, SOCK_STREAM, 0);
struct sockaddr_in server;
init_socket_server(&server, SERVER_IP, SERVER_PORT);
int ret = connect(sock, (struct sockaddr*)&server, sizeof(server));
...
git submodule update --init --recursive
make
make rpi-<your_device>
./build/rpi-<your_device> # execute
gdb ./build/rpi-<your_device> # debug
make server-mockup
build/server-mockup
#define SERVER_MOCK 1 // must declared before including types.h
#include "types.h"
will set SERVER_IP
to 127.0.0.1
.