Skip to content

Commit fa7bf52

Browse files
committed
disable non-implemented commands; copywrite date update
1 parent 757496d commit fa7bf52

File tree

1 file changed

+46
-44
lines changed

1 file changed

+46
-44
lines changed

sfeIoTNodeLoRaWAN/sfeNLCommands.h

+46-44
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
*---------------------------------------------------------------------------------
33
*
4-
* Copyright (c) 2024, SparkFun Electronics Inc.
4+
* Copyright (c) 2024-2025, SparkFun Electronics Inc.
55
*
66
* SPDX-License-Identifier: MIT
77
*
@@ -120,31 +120,32 @@ class sfeNLCommands
120120
/// @param theApp Pointer to the DataLogger App
121121
/// @retval bool indicates success (true) or failure (!true)
122122
///
123-
bool loadJSONSettings(sfeIoTNodeLoRaWAN *theApp)
124-
{
125-
if (!theApp)
126-
return false;
123+
// bool loadJSONSettings(sfeIoTNodeLoRaWAN *theApp)
124+
// {
125+
// if (!theApp)
126+
// return false;
127127

128-
flxLog_I(F("Load JSON Settings - Not Implemented"));
128+
// flxLog_I(F("Load JSON Settings - Not Implemented"));
129129

130-
// // Create a JSON prefs serial object and read in the settings
131-
// flxStorageJSONPrefSerial prefsSerial(flxSettings.fallbackBuffer() > 0 ? flxSettings.fallbackBuffer() : 2000);
130+
// // // Create a JSON prefs serial object and read in the settings
131+
// // flxStorageJSONPrefSerial prefsSerial(flxSettings.fallbackBuffer() > 0 ? flxSettings.fallbackBuffer() :
132+
// 2000);
132133

133-
// // restore the settings from serial
134-
// bool status = flxSettings.restoreObjectFromStorage(&flux, &prefsSerial);
135-
// if (!status)
136-
// return false;
134+
// // // restore the settings from serial
135+
// // bool status = flxSettings.restoreObjectFromStorage(&flux, &prefsSerial);
136+
// // if (!status)
137+
// // return false;
137138

138-
// flxLog_I_(F("Settings restored from serial..."));
139+
// // flxLog_I_(F("Settings restored from serial..."));
139140

140-
// // now save the new settings in primary storage
141-
// status = flxSettings.save(&flux, true);
142-
// if (status)
143-
// flxLog_N(F("saved locally"));
141+
// // // now save the new settings in primary storage
142+
// // status = flxSettings.save(&flux, true);
143+
// // if (status)
144+
// // flxLog_N(F("saved locally"));
144145

145-
// return status;
146-
return true;
147-
}
146+
// // return status;
147+
// return true;
148+
// }
148149
//---------------------------------------------------------------------
149150
///
150151
/// @brief Saves the current system to preferences/Settings
@@ -231,34 +232,35 @@ class sfeNLCommands
231232
/// @param theApp Pointer to the DataLogger App
232233
/// @retval bool indicates success (true) or failure (!true)
233234
///
234-
bool sdCardStats(sfeIoTNodeLoRaWAN *theApp)
235-
{
236-
if (!theApp)
237-
return false;
235+
// bool sdCardStats(sfeIoTNodeLoRaWAN *theApp)
236+
// {
237+
// if (!theApp)
238+
// return false;
238239

239-
flxLog_I(F("SD Stats - Not Implemented"));
240+
// flxLog_I(F("SD Stats - Not Implemented"));
240241

241-
// if (theApp->_theSDCard.enabled())
242-
// {
242+
// // if (theApp->_theSDCard.enabled())
243+
// // {
243244

244-
// char szSize[32];
245-
// char szCap[32];
246-
// char szAvail[32];
245+
// // char szSize[32];
246+
// // char szCap[32];
247+
// // char szAvail[32];
247248

248-
// flx_utils::formatByteString(theApp->_theSDCard.size(), 2, szSize, sizeof(szSize));
249-
// flx_utils::formatByteString(theApp->_theSDCard.total(), 2, szCap, sizeof(szCap));
250-
// flx_utils::formatByteString(theApp->_theSDCard.total() - theApp->_theSDCard.used(), 2, szAvail,
251-
// sizeof(szAvail));
249+
// // flx_utils::formatByteString(theApp->_theSDCard.size(), 2, szSize, sizeof(szSize));
250+
// // flx_utils::formatByteString(theApp->_theSDCard.total(), 2, szCap, sizeof(szCap));
251+
// // flx_utils::formatByteString(theApp->_theSDCard.total() - theApp->_theSDCard.used(), 2, szAvail,
252+
// // sizeof(szAvail));
252253

253-
// flxLog_I(F("SD Card - Type: %s Size: %s Capacity: %s Free: %s (%.1f%%)"), theApp->_theSDCard.type(),
254-
// szSize,
255-
// szCap, szAvail, 100. - (theApp->_theSDCard.used() / (float)theApp->_theSDCard.total() * 100.));
256-
// }
257-
// else
258-
// flxLog_I(F("SD card not available"));
254+
// // flxLog_I(F("SD Card - Type: %s Size: %s Capacity: %s Free: %s (%.1f%%)"), theApp->_theSDCard.type(),
255+
// // szSize,
256+
// // szCap, szAvail, 100. - (theApp->_theSDCard.used() / (float)theApp->_theSDCard.total() *
257+
// 100.));
258+
// // }
259+
// // else
260+
// // flxLog_I(F("SD card not available"));
259261

260-
return true;
261-
}
262+
// return true;
263+
// }
262264

263265
//---------------------------------------------------------------------
264266
///
@@ -427,11 +429,11 @@ class sfeNLCommands
427429
{"clear-settings-forced", &sfeNLCommands::clearDeviceSettingsForced},
428430
{"restart", &sfeNLCommands::restartDevice},
429431
{"restart-forced", &sfeNLCommands::restartDeviceForced},
430-
{"json-settings", &sfeNLCommands::loadJSONSettings},
432+
// {"json-settings", &sfeNLCommands::loadJSONSettings},
431433
{"log-rate", &sfeNLCommands::logRateStats},
432434
{"log-rate-toggle", &sfeNLCommands::logRateToggle},
433435
{"log-now", &sfeNLCommands::logObservationNow},
434-
{"sdcard", &sfeNLCommands::sdCardStats},
436+
// {"sdcard", &sfeNLCommands::sdCardStats},
435437
{"devices", &sfeNLCommands::listLoadedDevices},
436438
{"save-settings", &sfeNLCommands::saveSettings},
437439
{"heap", &sfeNLCommands::heapStatus},

0 commit comments

Comments
 (0)