Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - bretth

1
Web platform / HTTP GET/POST Client
Hi

I would like to trigger a HTTP Get or Post to a remote web server, the web platform being the client, when i have some certain conditions met, but, how do i go about the web client part of this, i looked through the TCPIP stack, but its wasn't clear to me!

An example URL i want to post is

Code: [Select]
http://sms1.cardboardfish.com:9001/HTTPSMS?S=H&UN=user01&P=pass1&DA=447973123456&SA=CBF&M=Please%20call%20me%20at%20the%20office

I use this to create SMS messages via the Cardboard fish service

Thanks
Brett
2
Web platform / Re: First compile and doesnt run!
I have dug a litle deaper, and stumbled across this tread

viewtopic.php?f=24&t=2214&start=15#p21364

If i comment out #define STACK_USE_HTTP_APP_RECONFIG in TCPIPConfig.h
and change

#define MY_DEFAULT_IP_ADDR_BYTE1        192
#define MY_DEFAULT_IP_ADDR_BYTE2        168
#define MY_DEFAULT_IP_ADDR_BYTE3        0
#define MY_DEFAULT_IP_ADDR_BYTE4        100

to match my network then everything is fine, but why isnt my DHCP settings working without making these changes, this seems to be as far as the thread i found above got to too!

Thanks
3
Web platform / First compile and doesnt run!
Hi

I have built the TCPIP Demo app for the webserver board, the board seems to boot, it gives out its IP address via UDP port 30303, but i dont get anything from my web browser. I have tried telneting in using port 80, and nothing also.

The ticker LED (LD1) flashes every second, plus the ACT LED seem to flash all the time, regardless of whether im trying to pull anything through the Ethernet port from the webserver.

However, to build i have had to comment out #define STACK_USE_HTTP_APP_RECONFIG in TCPIPConfig.h   

If i leave #define STACK_USE_HTTP_APP_RECONFIG in, then i get the following compile error

Code: [Select]
Executing: "C:Program FilesMicrochipmplabc30binpic30-gcc.exe" -mcpu=33FJ128GP204 -x c -c   "CustomHTTPApp.c" -o"Objects - TCPIP Demo App-C30CustomHTTPApp.o" -I"." -I"..MicrochipInclude" -I"%PROGRAMFILES%MicrochipMPLAB C30include" -D__DEBUG -g -Wall -mlarge-code
CustomHTTPApp.c: In function 'HTTPPostConfig':
CustomHTTPApp.c:485: error: 'NVM_VALIDATION_STRUCT' undeclared (first use in this function)
CustomHTTPApp.c:485: error: (Each undeclared identifier is reported only once
CustomHTTPApp.c:485: error: for each function it appears in.)
CustomHTTPApp.c:587:29: error: macro "SaveAppConfig" passed 1 arguments, but takes just 0
CustomHTTPApp.c:587: error: 'SaveAppConfig' undeclared (first use in this function)
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:Microchip Solutions v2010-10-19MCstackDemoTCPIP Demo App-C30.mcp' failed.
Language tool versions: pic30-as.exe v3.30, pic30-gcc.exe v3.30, pic30-ld.exe v3.30, pic30-ar.exe v3.30
Preprocessor symbol `__DEBUG' is defined.
Wed Aug 03 20:52:00 2011
----------------------------------------------------------------------
BUILD FAILED

Could commenting this out be preventing the webserver from functioning correctly?, and, what am i doing wrong to need to comment this out?

Thanks
Brett

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01282292856session_write_close ( )...(null):0
20.01312424456ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01312425232Database_MySQL->query( ).../DatabaseHandler.php:119
40.05592563976Database_MySQL->error( ).../Db-mysql.class.php:273