adafruit / adafruit/Adafruit_IO_Arduino

Replace endRequest with beginBody

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
222
Forks
109
PR merge metrics
No merged PRs in 30d

Description

Check if newer `beginBody` method exists in [ArduinoHTTPClient](https://github.com/arduino-libraries/ArduinoHttpClient). Replace `endRequest` and test on hardware targets.

https://github.com/adafruit/Adafruit_IO_Arduino/blob/master/src/AdafruitIO_Group.cpp#L322
```
// the following call to endRequest
// should be replaced by beginBody once the
// Arduino HTTP Client Library is updated
// _io->_http->beginBody();
_io->_http->endRequest();
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at src/AdafruitIO_Group.cpp around line 322 and check whether the current ArduinoHTTPClient provides beginBody. Replace the endRequest call when the dependency supports it, then test the change on the relevant hardware targets and confirm requests still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, cpp
Domain
embedded-iot
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.