Esp32 compatibility (#145)

* esp32 init

* RF gateway ok with ESP32

* correct IR gateway compilation errors and test RF2 ok

* divide config per board type

* update test file according user_config

* differentiate variable type following IR libraries aka platforms

* implement BLE beacons detection with ESP32

* Implement multitasking on BLE gateway

* Library add and change core assignement

* change core assignement for BLE

* add mi flora value readings with ESP32

* adding some traces and removing unecessary comment

* correct compilation error due to pin assignement

* correct temperature float value and wrong mac adress rssi publishing

* add esp32 to CI

* correct esp32 ide retrieving

* correcting paths

* CI: correct architecture
* libraries update (irremote) and overwrite ble library files
This commit is contained in:
Florian authored and GitHub committed 2018-01-01 18:50:45 +01:00
1 parent 15cea6b222
commit 7c6e0ccf61
19 files changed
+319 -101

No files matched your search

+4 -4
View File
@@ -65,7 +65,7 @@ uint32_t gc_checksum() {
return checksum;
}
#ifdef ESP8266
#if defined(ESP8266) || defined(ESP32)
void eeprom_setup() {
EEPROM.begin(4096);
pGC = (struct _GLOBAL_CONFIG *)EEPROM.getDataPtr();
@@ -88,7 +88,7 @@ void eeprom_setup() {
RFM69 radio;
void setupRFM69(void) {
#ifdef ESP8266
#if defined(ESP8266) || defined(ESP32)
eeprom_setup();
#endif
int freq;
@@ -101,7 +101,7 @@ void setupRFM69(void) {
// Initialize radio
if (!radio.initialize(pGC->rfmfrequency, pGC->nodeid, pGC->networkid))
{
trc(F("RFM69 initialization failed"));
trc(F("ZgatewayRFM69 initialization failed"));
}
if (GC_IS_RFM69HCW) {
@@ -111,7 +111,7 @@ void setupRFM69(void) {
if (pGC->encryptkey[0] != '\0') radio.encrypt(pGC->encryptkey);
trc(F("RFM69 Listening and transmitting at"));
trc(F("ZgatewayRFM69 Listening and transmitting at"));
switch (pGC->rfmfrequency) {
case RF69_433MHZ:
freq = 433;