mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-18 04:52:18 +02:00
Update: Removed duplicate power down function
Add: gnss power mode function
This commit is contained in:
@ -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");
|
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)
|
command_result set_network_bands_sim76xx(CommandableIf *t, const std::string& mode, const int* bands, int size)
|
||||||
{
|
{
|
||||||
ESP_LOGV(TAG, "%s", __func__ );
|
ESP_LOGV(TAG, "%s", __func__ );
|
||||||
//std::string any_mode = "0xFFFFFFFF7FFFFFFF";
|
|
||||||
uint64_t band_bits = 0;
|
uint64_t band_bits = 0;
|
||||||
for (int i = 0; i<size; ++i) {
|
for (int i = 0; i<size; ++i) {
|
||||||
// OR-operation to add bands
|
// OR-operation to add bands
|
||||||
|
@ -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);
|
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)
|
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);
|
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()
|
command_result SIM7600::power_down()
|
||||||
{
|
{
|
||||||
return dce_commands::power_down_sim76xx(dte.get());
|
return dce_commands::power_down_sim76xx(dte.get());
|
||||||
|
Reference in New Issue
Block a user