Skip to content

Made the changes with the interfacing with Jay#4

Open
jonesnxt wants to merge 7 commits intojl777:masterfrom
jonesnxt:master
Open

Made the changes with the interfacing with Jay#4
jonesnxt wants to merge 7 commits intojl777:masterfrom
jonesnxt:master

Conversation

@jonesnxt
Copy link

@jonesnxt jonesnxt commented Nov 9, 2015

you can now make requests to the javascript with:

char * dest=malloc(100);
    strcpy(dest, "\0");
    PostMessage("{\"pointer\":\"%u\",\"method\":\"createToken\",\"data\":\"aoeu\",\"secretPhrase\":\"aoeu\"}",dest);
    while(dest[0] == '\0')
    {
        msleep(100);
    }
PostMessage("Response: %s", dest);

response will be in json format, I didn't make this into a function because I'm sure there's a better way to set this up than starting with a malloc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants