Compare commits
No commits in common. "d31bff14c35cb8336e2af6e9efd45720d6f80021" and "fa74832fb9a08f3bbf98eb9e5c83b0c2d6f6f7a3" have entirely different histories.
d31bff14c3
...
fa74832fb9
54
.vscode/settings.json
vendored
Normal file
54
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"algorithm": "cpp",
|
||||||
|
"vector": "cpp",
|
||||||
|
"cmath": "cpp",
|
||||||
|
"array": "cpp",
|
||||||
|
"atomic": "cpp",
|
||||||
|
"*.tcc": "cpp",
|
||||||
|
"bitset": "cpp",
|
||||||
|
"cctype": "cpp",
|
||||||
|
"clocale": "cpp",
|
||||||
|
"cstdarg": "cpp",
|
||||||
|
"cstddef": "cpp",
|
||||||
|
"cstdint": "cpp",
|
||||||
|
"cstdio": "cpp",
|
||||||
|
"cstdlib": "cpp",
|
||||||
|
"cstring": "cpp",
|
||||||
|
"ctime": "cpp",
|
||||||
|
"cwchar": "cpp",
|
||||||
|
"cwctype": "cpp",
|
||||||
|
"deque": "cpp",
|
||||||
|
"unordered_map": "cpp",
|
||||||
|
"unordered_set": "cpp",
|
||||||
|
"exception": "cpp",
|
||||||
|
"functional": "cpp",
|
||||||
|
"iterator": "cpp",
|
||||||
|
"map": "cpp",
|
||||||
|
"memory": "cpp",
|
||||||
|
"memory_resource": "cpp",
|
||||||
|
"numeric": "cpp",
|
||||||
|
"optional": "cpp",
|
||||||
|
"random": "cpp",
|
||||||
|
"regex": "cpp",
|
||||||
|
"string": "cpp",
|
||||||
|
"string_view": "cpp",
|
||||||
|
"system_error": "cpp",
|
||||||
|
"tuple": "cpp",
|
||||||
|
"type_traits": "cpp",
|
||||||
|
"utility": "cpp",
|
||||||
|
"fstream": "cpp",
|
||||||
|
"initializer_list": "cpp",
|
||||||
|
"iomanip": "cpp",
|
||||||
|
"iosfwd": "cpp",
|
||||||
|
"istream": "cpp",
|
||||||
|
"limits": "cpp",
|
||||||
|
"new": "cpp",
|
||||||
|
"ostream": "cpp",
|
||||||
|
"sstream": "cpp",
|
||||||
|
"stdexcept": "cpp",
|
||||||
|
"streambuf": "cpp",
|
||||||
|
"cinttypes": "cpp",
|
||||||
|
"typeinfo": "cpp"
|
||||||
|
}
|
||||||
|
}
|
25
src/api.cpp
25
src/api.cpp
@ -12,6 +12,31 @@ struct SendToApiParams {
|
|||||||
String updatePayload;
|
String updatePayload;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
// Spoolman Data
|
||||||
|
{
|
||||||
|
"version":"1.0",
|
||||||
|
"protocol":"openspool",
|
||||||
|
"color_hex":"AF7933",
|
||||||
|
"type":"ABS",
|
||||||
|
"min_temp":175,
|
||||||
|
"max_temp":275,
|
||||||
|
"brand":"Overture"
|
||||||
|
}
|
||||||
|
|
||||||
|
// FilaMan Data
|
||||||
|
{
|
||||||
|
"version":"1.0",
|
||||||
|
"protocol":"openspool",
|
||||||
|
"color_hex":"AF7933",
|
||||||
|
"type":"ABS",
|
||||||
|
"min_temp":175,
|
||||||
|
"max_temp":275,
|
||||||
|
"brand":"Overture",
|
||||||
|
"sm_id":
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
JsonDocument fetchSingleSpoolInfo(int spoolId) {
|
JsonDocument fetchSingleSpoolInfo(int spoolId) {
|
||||||
HTTPClient http;
|
HTTPClient http;
|
||||||
String spoolsUrl = spoolmanUrl + apiUrl + "/spool/" + spoolId;
|
String spoolsUrl = spoolmanUrl + apiUrl + "/spool/" + spoolId;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user