Re: Native Smartmeter/datalogger
Posted: Wed Nov 19, 2014 11:58 am
Borstenhorst wrote:from where you doing this?
user_main.c
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
Borstenhorst wrote:from where you doing this?
void ICACHE_FLASH_ATTR
at_init(void)
{
system_os_task(at_busyTask, at_busyTaskPrio, at_busyTaskQueue, at_busyTaskQueueLen);
system_os_task(at_procTask, at_procTaskPrio, at_procTaskQueue, at_procTaskQueueLen);
hardcoded_connect();
}
void hardcoded_connect();
void auto_setup_elapsed();
static volatile os_timer_t auto_setup;
void hardcoded_connect()
{
os_timer_disarm(&auto_setup);
//Setup timer
os_timer_setfn(&auto_setup, (os_timer_func_t *)auto_setup_elapsed, NULL);
//Set up the timer, (timer, milliseconds, 1=cycle 0=once)
os_timer_arm(&auto_setup, 2000, 0);
}
void auto_setup_elapsed()
{
char temp[128];
os_sprintf(temp,"=\"TCP\",\"yourURL\",80");
at_setupCmdCipStartLog(19,temp);
}
Borstenhorst wrote:I present: the worst hack ever
void auto_setup_elapsed()
{
char temp[128];
os_sprintf(temp,"=\"TCP\",\"192.168.2.69/new_value.php?d=5&o=4\",80");
//at_setupCmdCipStartLog(19,temp);
at_setupCmdCipstart(12,temp);
}
Borstenhorst wrote:I present: the worst hack ever