
https://www.aliexpress.com/item/1005001308874670.html?spm=a2g0s.9042311.0.0.27424c4dLVw9Ug

https://www.aliexpress.com/item/1005001308874670.html?spm=a2g0s.9042311.0.0.27424c4dLVw9Ug
US $13.75 48%OFF | 4G 28dbi Antenna SMA Male WIFI Signal Booster Amplifier LTE 4G Outdoor Directional Booster Yagi Antenna Modem RG58 1.5m
https://star.aliexpress.com/share/share.htm?redirectUrl=https%3A%2F%2Fwww.aliexpress.com%2Fitem%2F1005001679546591.html%3Fmb%3DQ2nw3ZMRd1ZJoAe%26srcSns%3DWordPress%26tid%3Dwhite_backgroup_101&image=U50ff7a6dbca74645beaa01e3653389d9i.jpg&businessType=ProductDetail&templateId=white_backgroup_101&title=US%20%2413.75%20%2048%25OFF%20%7C%204G%2028dbi%20Antenna%20SMA%20Male%20WIFI%20Signal%20Booster%20Amplifier%20LTE%204G%20Outdoor%20Directional%20Booster%20Yagi%20Antenna%20Modem%20RG58%201.5m&platform=AE
The change for software serial ports require a simple modification of the file:
<base Arduino folder>\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.h
Change:
__#define _SS_MAX_RX_BUFF 64 // RX buffer size
To:
__#define _SS_MAX_RX_BUFF 256 // RX buffer size
The change for hardware serial ports require a simple modification of the file:
<base Arduino folder>\hardware\arduino\avr\cores\arduino\HardwareSerial.h
Change:
__#define SERIAL_TX_BUFFER_SIZE 64
__#define SERIAL_RX_BUFFER_SIZE 64
To:
__#define SERIAL_TX_BUFFER_SIZE 256
__#define SERIAL_RX_BUFFER_SIZE 256
Btw, you can copy the SoftwareSerial.cpp and h files from the Arduino directory in to your project directory and then include it with “(quotation marks) instead of the < (pointy brackets). If you do this, make sure to also change the #include <SoftwareSerial.h> in your copy of SoftwareSerial.cpp to “SoftwareSerial.h”.
~you use <pointy brackets> to include files from arduino libraries and
“quotes” to include from project directory.
Source: Internet of Home Things » Expanding Arduino Serial Port Buffer Size
Serial.write() just sends raw bytes of data.
Serial.print() converts and displays data in human readable forms (ASCII).