glowfishAPI / httpsclient-particle

An httpsclient implementation for particle.io's photon
GNU General Public License v2.0
69 stars 23 forks source link

Library usage questions #9

Open andrey-gvrd opened 8 years ago

andrey-gvrd commented 8 years ago

I understand that this library still under development, but I had a couple of question regarding the use of it.

For example -- in a GET request in examples/timeapi-test.cpp: Where is the server's request returned to? Why do I have to declare these global variables in my code:

const int g_port = 443;
bool g_https_complete;
uint32 g_bytes_received;

When should I call httpsclientSetup? What does httpsclientCleanUp do and why isn't it called after a successful transaction? If dynamic memory allocation is not used, what's the purpose of the System.freeMemory(); call?