mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 07:12:06 +08:00
Remove the tail space char from all files
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Petro Karashchenko

parent
cf9dd1c653
commit
21bc466a2b
@@ -2,19 +2,19 @@
|
||||
|
||||
## What's this?
|
||||
|
||||
This program consists of a client socket & custom messages that send data (hex-string formatted data) to a server (tcp_ipc_server).
|
||||
This program consists of a client socket & custom messages that send data (hex-string formatted data) to a server (tcp_ipc_server).
|
||||
Then, tcp_ipc_server send this data over LoraWAN (using Radioenge LoRaWAN module). It means using TCP/IP sockets as IPC channel to ensure controlled access to LoRaWAN connectivity.
|
||||
The goals of using this approach to send LoRaWAN data are:
|
||||
|
||||
* Having a solid and reliable infrastructure to ensure IPC works fine for multiple applications simultaneously
|
||||
* Having the possibility to host different IoT projects and solutions that use LPWAN in a single ESP32
|
||||
* Having the possibility to host different IoT projects and solutions that use LPWAN in a single ESP32
|
||||
* Having the possibility to validate, test and debug multiple IoT projects and solutions at the same time, under the same connectivity conditions (same signal strength, same antenna, same modem/transceiver, etc.)
|
||||
|
||||
Both client and server work on local network scope.
|
||||
|
||||
|
||||
## How do I use this?
|
||||
|
||||
|
||||
In order to test tcp_ipc_client & tcp_ipc_server together, there are two ways to proceed:
|
||||
|
||||
1) Init server manually (command: SERVER &), and after successfull server init, also init client manually (CLIENT 127.0.0.1)
|
||||
|
@@ -43,7 +43,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include "protocol.h"
|
||||
|
||||
@@ -90,7 +90,7 @@ static void show_usage(FAR const char *progname)
|
||||
#define SOCKET_PORT 5000
|
||||
#define TCP_DATA_RCV_WITHOUT_FLAGS 0
|
||||
#define RCV_BUFFER_SIZE 520
|
||||
#define SEND_BUFFER_SIZE 500
|
||||
#define SEND_BUFFER_SIZE 500
|
||||
#define TIME_SECONDS_TO_SEND_NEXT_DATA 15
|
||||
|
||||
/****************************************************************************
|
||||
|
Reference in New Issue
Block a user