Skip to content

Commit

Permalink
web.post api is different than note.add
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Oct 29, 2024
1 parent 6f2d502 commit 14a747f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sfy-buoy/sfy-artemis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ git = "https://github.com/gauteh/ambiq-rs"
[features]
default = [ "deploy", "fir" ]
continuous = [ "sfy/continuous" ]
continuous-post = [ "sfy/continuous-post" ]
continuous-post = [ "sfy/continuous-post", "sfy/continuous" ]
20Hz = [ "sfy/20Hz" ]
raw = [ "sfy/raw" ]
fir = [ "sfy/fir" ]
Expand Down
2 changes: 1 addition & 1 deletion sfy-buoy/sfy-ext-gps/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ git = "https://github.com/gauteh/ambiq-rs"
[features]
default = [ "deploy", "fir" ]
continuous = [ "sfy/continuous" ]
continuous-post = [ "sfy/continuous-post" ]
continuous-post = [ "sfy/continuous-post", "sfy/continuous" ]
20Hz = [ "sfy/20Hz" ]
raw = [ "sfy/raw" ]
fir = [ "sfy/fir" ]
Expand Down
7 changes: 4 additions & 3 deletions sfy-buoy/src/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,11 @@ impl<I2C: Read + Write> Notecarrier<I2C> {
.web()
.post(
delay,
"sfy-hub",
"sfypost",
None,
Some(meta),
Some(core::str::from_utf8(&b64).unwrap()),
None,
// Some(core::str::from_utf8(&b64).unwrap()), // TODO: need to send actual data.
None,
None,
None,
Expand Down Expand Up @@ -320,7 +321,7 @@ impl<I2C: Read + Write> Notecarrier<I2C> {
.web()
.post(
delay,
"sfy-hub",
"sfypost",
None,
Some(meta),
Some(core::str::from_utf8(&b64).unwrap()),
Expand Down

0 comments on commit 14a747f

Please sign in to comment.