Merge pull request #6437 from P-R-O-C-H-Y/rainmaker-fix
Rainmaker - CmakeList.txt + src files edit
This commit is contained in:
commit
4866f93257
13 changed files with 37 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ endfunction()
|
|||
|
||||
maybe_add_component(esp-dsp)
|
||||
|
||||
if(IDF_TARGET MATCHES "esp32" AND CONFIG_ESP_RMAKER_TASK_STACK)
|
||||
if(CONFIG_ESP_RMAKER_TASK_STACK)
|
||||
maybe_add_component(esp_rainmaker)
|
||||
maybe_add_component(qrcode)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "RMaker.h"
|
||||
#include <esp_rmaker_schedule.h>
|
||||
#include <esp_rmaker_utils.h>
|
||||
|
|
@ -112,3 +114,4 @@ esp_err_t RMakerClass::enableOTA(ota_type_t type, const char *cert)
|
|||
}
|
||||
|
||||
RMakerClass RMaker;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#pragma once
|
||||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "esp_system.h"
|
||||
#include "Arduino.h"
|
||||
#include "RMakerNode.h"
|
||||
|
|
@ -38,3 +40,4 @@ class RMakerClass
|
|||
};
|
||||
|
||||
extern RMakerClass RMaker;
|
||||
#endif
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "RMakerDevice.h"
|
||||
|
||||
static esp_err_t err;
|
||||
|
|
@ -204,3 +206,4 @@ esp_err_t Device::updateAndReportParam(const char *param_name, const char *my_va
|
|||
}
|
||||
return ESP_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#pragma once
|
||||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "esp_system.h"
|
||||
#include "RMakerParam.h"
|
||||
#include <esp_rmaker_standard_devices.h>
|
||||
|
|
@ -162,3 +164,4 @@ class TemperatureSensor : public Device
|
|||
}
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "RMakerNode.h"
|
||||
static esp_err_t err;
|
||||
|
||||
|
|
@ -37,3 +39,4 @@ esp_err_t Node::addNodeAttr(const char *attr_name, const char *val)
|
|||
}
|
||||
return err;
|
||||
}
|
||||
#endif
|
||||
|
|
@ -12,6 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#pragma once
|
||||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "esp_system.h"
|
||||
#include "RMakerDevice.h"
|
||||
|
||||
|
|
@ -41,3 +43,4 @@ class Node
|
|||
node_info_t *getNodeInfo();
|
||||
esp_err_t addNodeAttr(const char *attr_name, const char *val);
|
||||
};
|
||||
#endif
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "RMakerParam.h"
|
||||
|
||||
static esp_err_t err;
|
||||
|
|
@ -28,3 +30,4 @@ esp_err_t Param::updateAndReport(param_val_t val)
|
|||
}
|
||||
return err;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#pragma once
|
||||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "esp_system.h"
|
||||
#include "RMakerType.h"
|
||||
|
||||
|
|
@ -46,3 +48,4 @@ class Param
|
|||
esp_err_t addBounds(param_val_t min, param_val_t max, param_val_t step);
|
||||
esp_err_t updateAndReport(param_val_t val);
|
||||
};
|
||||
#endif
|
||||
|
|
@ -12,6 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#pragma once
|
||||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "esp_system.h"
|
||||
#include <qrcode.h>
|
||||
|
||||
|
|
@ -32,3 +34,4 @@ static void printQR(const char *name, const char *pop, const char *transport)
|
|||
qrcode_display(payload);
|
||||
Serial.printf("If QR code is not visible, copy paste the below URL in a browser.\n%s?data=%s\n", QRCODE_BASE_URL, payload);
|
||||
}
|
||||
#endif
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "RMakerType.h"
|
||||
|
||||
param_val_t value(int ival)
|
||||
|
|
@ -19,3 +21,4 @@ param_val_t value(float fval)
|
|||
{
|
||||
return esp_rmaker_float(fval);
|
||||
}
|
||||
#endif
|
||||
|
|
@ -12,6 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#pragma once
|
||||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "esp_system.h"
|
||||
#include <esp_rmaker_core.h>
|
||||
#include <esp_rmaker_ota.h>
|
||||
|
|
@ -31,3 +33,4 @@ param_val_t value(int);
|
|||
param_val_t value(bool);
|
||||
param_val_t value(char *);
|
||||
param_val_t value(float);
|
||||
#endif
|
||||
|
|
@ -12,6 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#pragma once
|
||||
#include "sdkconfig.h"
|
||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||
#include "esp_system.h"
|
||||
#include <esp_rmaker_utils.h>
|
||||
|
||||
|
|
@ -24,3 +26,4 @@ static void RMakerWiFiReset(int seconds)
|
|||
{
|
||||
esp_rmaker_wifi_reset(0, seconds);
|
||||
}
|
||||
#endif
|
||||
Loading…
Reference in a new issue