-->
Page 5 of 9

Re: Native Smartmeter/datalogger

PostPosted: Wed Nov 19, 2014 1:13 pm
by Borstenhorst
I guess DNS tries to resolve the IP as Domain which is obviously not possible. but this is just an assumption.
BTW: the duration parameter of the URL is added by the logger, no need to have it in your URL.

Re: Native Smartmeter/datalogger

PostPosted: Wed Nov 19, 2014 1:31 pm
by alonewolfx2
yes it was dns issue. can we trigger your "connection_timer_elapsed" function for every 1 minute or direct in user_main? i am reading adc value and i want to send every 20 second.

Borstenhorst wrote:I guess DNS tries to resolve the IP as Domain which is obviously not possible. but this is just an assumption.
BTW: the duration parameter of the URL is added by the logger, no need to have it in your URL.

Re: Native Smartmeter/datalogger

PostPosted: Wed Nov 19, 2014 1:37 pm
by Borstenhorst
Nothing is happening in user_main, put you stuff into the corresponding functions

I you want to to trigger the elapsed function every minute you'll need:
Code: Select allos_timer_arm(&connection_timer_elapsed, 60000, 1);

Re: Native Smartmeter/datalogger

PostPosted: Wed Nov 19, 2014 2:09 pm
by alonewolfx2
I can not run.i put os_timer_arm(&connection_timer_elapsed, 60000, 1); in hardcoded_connect or auto_setup_elapsed function.but its not send every minute. just interrupt send data
Borstenhorst wrote:Nothing is happening in user_main, put you stuff into the corresponding functions

I you want to to trigger the elapsed function every minute you'll need:
Code: Select allos_timer_arm(&connection_timer_elapsed, 60000, 1);