Arduino IDE library packaging modification

#579
Update doc to reflect necessary manual changes
Implement a part of these changes to automatic script
This commit is contained in:
Florian committed 2020-04-27 12:35:42 -05:00
1 parent 30147140bd
commit b4e65aef6f
2 files changed
+15 -1

No files matched your search

+13 -1
View File
@@ -6,7 +6,18 @@
* Download OpenMQTTGateway code (OpenMQTTGateway_sources.zip) from the [release page](https://github.com/1technophile/OpenMQTTGateway/releases) and unzip it
* Download the libraries package corresponding to your board and module wished into the same page (example esp32-m5stick-c-ble-libraries.zip)
* Unzip the libraries into your arduino libraries folder (example D:/Users/XXXX/Documents/Arduino/libraries)
* Open the file main.ino from OpenMQTTGateway/main folder
* If you are using an ESP, Mega or other powerfull board; Open the *PubSubClient* folder, open the file src/PubSubClient.h, replace
```C++
#define MQTT_MAX_PACKET_SIZE 128
```
by
```C++
#define MQTT_MAX_PACKET_SIZE 1024
```
This modification will enable to send and receive by MQTT long json messages.
* If necessary replace the spaces into each library folder by _: example rename “ESP32 BLE Arduino” folder to “ESP32_BLE_Arduino”
* Open the file main.ino from OpenMQTTGateway/main folder with the arduino IDE
* Change the settings and the desired gateways into user_config.h (uncomment the modules you want)
*Example for the use of RF gateway*
@@ -21,6 +32,7 @@
* Change the pins or parameters corresponding to the modules choosen, for RF you can change the pins into config_RF.h
* Choose the board on the Arduino IDE
* Select the port corresponding to the board
* Note that for using BLE on ESP32 you will need to select *Minimal SPIFFS* into Tools->Partition Scheme
* Open the serial monitor and set 115200 bauds
* Upload ➡️
* You should see the logs into the serial monitor