Hi
I found the problem, I was not forming my GET request properly
now: GET Google HTTP/1.1\n\n
Returns what I need :)
Tho thanks for the response qwertyLurker, ill have a look at libcURL...
Type: Posts; User: DavidDobson
Hi
I found the problem, I was not forming my GET request properly
now: GET Google HTTP/1.1\n\n
Returns what I need :)
Tho thanks for the response qwertyLurker, ill have a look at libcURL...
Hi Everyone
I am developing for Linux and am looking for a way to retrieve HTTP pages from the internet, I have found a couple of tutorials that have shown me how to get the basics sorted out:
...
Hi
I have two 16bit numbers (in Hex):
0x1234
&&
0x2119
Thanks both of you, just wanted to make sure I was not missing anything blindingly obvious, ill try re-arranging the if | sequence and look into adding a hasPending bit :)
Thank you :)
David
Hi
Can anyone think of a batter way of doing this:
#define NONE 0x00
#define PENDING 0x01
#define REQUESTED 0x02
typedef struct {
Thank you every one for your help, I have been playing with the htons and ntohs functions to try to get the order to reverse:
uint16_t var1 = 0x1234;
printf("htons: %04X | \n", htons(var1));...
ahh ic, yes that has worked - annoying but hey - if it works...
Just to make sure I understand what I had been reading: the Linux system is a Little endian based system and my embedded system is a...
Hello
I have a function that takes a strut and turns it into a uint8_t array. This code is running on an embedded device and works well. I have recently copied this code to a linux development...
Hi everyone
This is a REALLY silly question but:
if I declare an array like this:
uint8_t myArray[5];
I get a one dimensional array of uint8_ts...
oh right I see, ill try that, many thanks
David
Hi
Sorry, not quite with you? I'm not passing global variables between functions, i'm passing pointers.
David
Hi
thanks for the reply :)
So after I do this:
GlobalPowerData = *LPD;
and the function in which the LPD variable is defined, created and set finishes (thus removing the local LPD...
Hi
I am trying to cast a byte buffer (that is contained within a struct) to a different struct variable:
typedef struct {
uint8_t protocolVersion;
uint8_t messageCount;
uint8_t...
Hi
I'm looking for a way to take two uint8_t values and place them in a Uint16_t...
uint8_t bob 0xDD;
uint8_t fred 0xFF;
uint16_t tom;
Hi
what is the difference between:
uint8_t size = 50;
--
Hi
I have a struct variable as such:
typedef struct {
uint8_t header[APS_ASDU_OFFSET];
uint8_t data[sizeof(AppLowPowerData_t)];
uint8_t footer[APS_AFFIX_LENGTH -...
ah! that did it - thanks everyone :D
Hi - thanks for the reply - sadly if i do that the data within the strut get mangled, do I need to specify its the pointer I want to increment or something?
David
Hi
I have a uint8_t array that I am casting to a struct:
void processe(uint8_t *buffer, int length) {
AppConfigData_t* configData;
configData = (AppConfigData_t *) buffer;
} //...
Hi
I have a struct variable that contains some data:
typedef struct {
uint8_t commandIssued;
uint16_t oraginAddress;
bool success;
} PACK AppCommandAck_t;
Hi
I have a strut variable that I am using as a packet template for communication within my C application:
typedef struct
{
uint8_t header[HEADER_OFFSET];
uint8_t ...
Hi
I am using the -= operation on a uint8_t number but when I debug / execute the number does not reduce by the value I give it, done anyone know why?
uint8_t number;
number = 15;
ah ha! option number two works, many thanks - I was really stuck on that!
:D
David
Hi
I'm sure this is a simple problem but I'm quite stuck, when ever I compile my code I get the "warning: cast to pointer from integer of different size" warning. Could someone show me how to...
ah! that did it! - Thanks :)
int main()
{
uint64_t macAddress = 0xABCDEF0123456789LL;
uint16_t shortAddress = 0x0000;
shortAddress = (uint16_t)macAddress;
printf("SHort...