Other Parts Discussed in Thread: CC3200, CC3200MOD
Hi all,
We have a requirement in project where the CC3200 MOD will be a server and an Android terminal will be talking to it.
The Android terminal would be sending a JSON object which the server(CC3200) has to decode and send response or act to a command in the object (JSON string).
I am aware of the following things present in the SDK.
1. http server - demo
2. http client demo
3. Jasmine json parser.
I believe I have to use http server along with Jasmine parser.
Am I right ?
My queries :
1. In void SimpleLinkHttpServerCallback(SlHttpServerEvent_t *pSlHttpServerEvent,
SlHttpServerResponse_t *pSlHttpServerResponse)
and in the SL_NETAPP_HTTPGETTOKENVALUE_EVENT case, I see that pSlHttpServerResponse is being filled with response length and response data.
How is the structure pSlHttpServerResponse sent to the client , does the webserver which called the callback SimpleLinkHttpServerCallback automatically sends ?
If not how is the response sent ?
2. The customer has sent the data fields required in the form of "raml" documents.
Do I have to create a JSON format similar to what is there in http-demo-client like
#define POST_DATA "{\n\"name\":\"xyz\",\n\"address\":\n{\n\"plot#\":12,\n\"street\":\"abc\",\n\"city\":\"ijk\"\n},\n\"age\":30\n}"
Thank you very much.
Regards,
Vamsi.

