Search found 91 matches

by Lachlanp
Sun Oct 01, 2017 9:47 am
Forum: NetBurner Software
Topic: return data from a web POST request
Replies: 2
Views: 3172

Re: return data from a web POST request

thanks. with your help I have managed to fix the problem. I couldnt get fdprint to work but once you pointed me in the correct direction, i managed to find other code. I tried: fdprintf(sock, "<p>%s</p>", data); What worked for me is simply: SendHTMLHeader( sock ); //Send the ok header and...
by Lachlanp
Sun Sep 17, 2017 12:08 pm
Forum: NetBurner Software
Topic: return data from a web POST request
Replies: 2
Views: 3172

return data from a web POST request

I want to return data and indicate that a POST request was successful, but I am not sure how this is done with Netburner software In the web page I have the following ajax call: $.ajax({type: "POST", url: 'TIMESET', async: false, data: t, timeout: 4000, success: function(data){ alert("...
by Lachlanp
Thu Apr 20, 2017 6:36 am
Forum: NetBurner Software
Topic: Size of serial buffer
Replies: 4
Views: 4804

Re: Size of serial buffer

thanks. That solves my problem.
regards
Lachlan
by Lachlanp
Wed Apr 19, 2017 10:26 pm
Forum: NetBurner Software
Topic: Size of serial buffer
Replies: 4
Views: 4804

Re: Size of serial buffer

Thanks for your response. that explains the serial buffer. Regarding the timeout, I was referring to my main program having a delay of 1 tick between cycles for checking for serial input. At 115200 baud that means there could be up to 576 bytes accumulated in the serial buffer between each time my p...
by Lachlanp
Tue Apr 11, 2017 11:43 am
Forum: NetBurner Software
Topic: Cannot find the library containing delay()
Replies: 7
Views: 6686

Re: Cannot find the library containing delay()

thanks.
works a treat.
by Lachlanp
Tue Apr 11, 2017 9:12 am
Forum: NetBurner Software
Topic: Cannot find the library containing delay()
Replies: 7
Views: 6686

Re: Cannot find the library containing delay()

OK. That's clear.

Just confirming that:
- the delay function is only blocking on the current task and does not block other tasks?
- we can have delays that are less than the system tick? e.g 0.01 = 10mS

Thanks
Lachlan
by Lachlanp
Tue Apr 11, 2017 7:50 am
Forum: NetBurner Software
Topic: Cannot find the library containing delay()
Replies: 7
Views: 6686

Re: Cannot find the library containing delay()

I don't want to use the HiResTimer. I want to use the delay().
This is defined in section 23.12 of the Runtime Library Manual on page 297.

The usage is delay(x) where x seconds, and it is a double and should be in the range of around 0.0002 - 0.05 (after that OSTimeDly() can be used)

Lachlan
by Lachlanp
Tue Apr 11, 2017 7:47 am
Forum: NetBurner Software
Topic: Size of serial buffer
Replies: 4
Views: 4804

Size of serial buffer

I am trying to determine the size of the serial buffer. From other posts, it appears that the size of the serial buffer is defined in nburn/include/constants.h where it is defined as SERIAL_TX_BUFFERS 2 and SERIAL_RX_BUFFERS 2 Is this correct? This does not seem possible as all my data would be lost...
by Lachlanp
Tue Apr 11, 2017 6:59 am
Forum: NetBurner Software
Topic: Cannot find the library containing delay()
Replies: 7
Views: 6686

Cannot find the library containing delay()

page 297 of the Runtime Libraries manual indicates a function delay() that gives a precise task delay in the sub-microseconds. It is in section 23 of the manual under the heading of HiResTimer. I am using Netburner IDE 2.8.2 and #include <HiResTimer.h> doesnt work (neither does #include <delay.h>) w...
by Lachlanp
Tue Feb 28, 2017 10:05 am
Forum: NetBurner Software
Topic: Access to the SystemTick interrupt
Replies: 4
Views: 5294

Re: Access to the SystemTick interrupt

Thanks. ill stick to using the PIT timer then.
Lachlan