Lighting a LED when a parameter is posted

Applications, development tools, FPGA, C, WEB
Post Reply
mikepage
Posts: 23
Joined: Fri Oct 09, 2015 12:56 pm

Lighting a LED when a parameter is posted

Post by mikepage » Wed Nov 18, 2015 9:57 pm

Hi,

I want to light up the LEDs when I receive certain values of parameters in my C code from the Javascript. I tried adding:

rp_DpinSetState(RP_LED2, RP_HIGH);

to my rp_set_params() function, but it appeared to cause the application to crash and I got nothing back from the POST request. When I take that line out everything is fine. Is that the wrong way to do it? I wondered if I needed rp_init() but adding that to rp_app_init() broke that function too (actually I wasn't really surprised by that).

Thanks for any advice,
Mike.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 87 guests