-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network_http_post_bin added to network functions for all targets
- Loading branch information
1 parent
c751591
commit 5da12ed
Showing
4 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifdef _CMOC_VERSION_ | ||
#include <cmoc.h> | ||
#else | ||
#include <stdint.h> | ||
#include <string.h> | ||
#endif /* _CMOC_VERSION_ */ | ||
#include "fujinet-network.h" | ||
|
||
uint8_t network_http_post_bin(char *devicespec, uint8_t *data, uint16_t len) { | ||
uint8_t err; | ||
err = network_http_set_channel_mode(devicespec, HTTP_CHAN_MODE_POST_SET_DATA); | ||
if (err) return err; | ||
err = network_write(devicespec, data, len); | ||
if (err) return err; | ||
return network_http_set_channel_mode(devicespec, HTTP_CHAN_MODE_BODY); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.5.3 | ||
4.6.0 |