26 lines
878 B
C
26 lines
878 B
C
#ifndef FAKE_API_CTX_H
|
|
#define FAKE_API_CTX_H
|
|
|
|
#include "net/nl_api.h"
|
|
|
|
extern nl_api_ctx_t fake_ctx;
|
|
extern nl_light_state_t fake_state;
|
|
extern nl_settings_t fake_settings;
|
|
extern nl_sys_info_t fake_info;
|
|
extern nl_light_change_t fake_last_change;
|
|
extern nl_ctrl_err_t fake_apply_result;
|
|
extern int fake_apply_calls, fake_save_calls, fake_save_result;
|
|
extern int fake_wifi_calls, fake_wifi_result;
|
|
extern char fake_wifi_ssid[NL_SSID_LEN], fake_wifi_pass[NL_PASS_LEN];
|
|
extern int fake_standalone_calls, fake_standalone_result;
|
|
extern bool fake_standalone_enabled, fake_standalone_pulse;
|
|
extern char fake_standalone_ssid[NL_SSID_LEN], fake_standalone_pass[NL_PASS_LEN];
|
|
extern uint8_t fake_standalone_channel;
|
|
extern int fake_factory_calls, fake_ping_calls, fake_fw_result;
|
|
extern char fake_fw_url[256];
|
|
extern bool fake_open;
|
|
|
|
void fake_api_reset(const char *board_id);
|
|
|
|
#endif
|