Open episource opened 2 years ago
Memory usage change @ 967f1bbfcc79e29fc95faa13927bcde7faf4391f
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:samd:mkr1000 | :small_red_triangle: +24 - +32 | +0.01 - +0.01 | 0 - 0 | 0.0 - 0.0 |
@per1234 any chance we can merge this pull request? it seems very useful, as the current implementation fails when making multiples request.
HttpClient implements inherited
Client::connect(IPAddress ip, uint16_t port)
andClient::connect(const char *host, uint16_t port)
. The existing implementation is to simple: it does not update internal state variablesiServerName
,iServerAddress
andiServerPort
, but just invokes the wrapped client. This causes subsequent requests to be incorrect (e.g. wronghost
header).This PR changes
connect
to also update state.