Update: Removed duplicate power down function

Add: gnss power mode function
This commit is contained in:
Sjur G. Wroldsen
2022-04-20 09:37:39 +02:00
parent be3d2ece55
commit e98cf16859
2 changed files with 7 additions and 6 deletions

View File

@ -490,10 +490,11 @@ command_result set_network_bands(CommandableIf *t, const std::string& mode, cons
return generic_command_common(t, "AT+CBANDCFG=\"" + mode + "\"," + band_string + "\r");
}
// mode is expected to be 64bit string (in hex)
// any_mode = "0xFFFFFFFF7FFFFFFF";
command_result set_network_bands_sim76xx(CommandableIf *t, const std::string& mode, const int* bands, int size)
{
ESP_LOGV(TAG, "%s", __func__ );
//std::string any_mode = "0xFFFFFFFF7FFFFFFF";
uint64_t band_bits = 0;
for (int i = 0; i<size; ++i) {
// OR-operation to add bands

View File

@ -55,16 +55,16 @@ command_result SIM7600::get_battery_status(int &voltage, int &bcs, int &bcl)
return dce_commands::get_battery_status_sim7xxx(dte.get(), voltage, bcs, bcl);
}
command_result SIM7600::power_down()
{
return dce_commands::power_down_sim76xx(dte.get());
}
command_result SIM7600::set_network_bands(const std::string& mode, const int* bands, int size)
{
return dce_commands::set_network_bands_sim76xx(dte.get(), mode, bands, size);
}
command_result SIM7600::set_gnss_power_mode(int mode)
{
return dce_commands::set_gnss_power_mode_sim76xx(dte.get(), mode);
}
command_result SIM7600::power_down()
{
return dce_commands::power_down_sim76xx(dte.get());