Exemplo n.º 1
0
                          emberAfPrintStatus,
                          "",
                          "Print the status of all the debug print areas."),
  emberCommandEntryAction("all_on",
                          emberAfPrintAllOn, 
                          "",
                          "Turn all debug print areas on."),

  emberCommandEntryAction("all_off",
                          emberAfPrintAllOff, 
                          "",
                          "Turn all debug print areas off."),

  emberCommandEntryActionWithDetails("on",
                                     printOnCommand, 
                                     "v",
                                     "Turn on the printing for the specified area.",
                                     debugPrintOnOffCommandArguments),

  emberCommandEntryActionWithDetails("off",
                                     printOffCommand, 
                                     "v",
                                     "Turn off the printing for the specified area.",
                                     debugPrintOnOffCommandArguments),
  emberCommandEntryTerminator(),
};
#endif // EMBER_AF_GENERATE_CLI

#endif

//------------------------------------------------------------------------------
Exemplo n.º 2
0
void setPolicy(void);

#if defined(EMBER_AF_PLUGIN_OTA_SERVER_POLICY)

static const PGM_P queryArguments[] = {
  "Policy enoumeration",
  NULL,
};

#ifndef EMBER_AF_GENERATE_CLI
static EmberCommandEntry policyCommands[] = {
  emberCommandEntryAction("print",        emAfOtaServerPolicyPrint, "", 
                          "Print the OTA Server's policies"),
  emberCommandEntryActionWithDetails("query",        setPolicy, "v", 
                                     "Set the OTA Server's query policy",
                                     queryArguments),
  emberCommandEntryAction("blockRequest", setPolicy, "v", "" ),
  emberCommandEntryAction("upgrade",      setPolicy, "v", "" ),
  emberCommandEntryAction("page-req-miss", setPolicy, "v", "" ),
  emberCommandEntryAction("page-req-sup",  setPolicy, "v", "" ),
  emberCommandEntryAction("image-req-min-period", setPolicy, "v", "" ),
  emberCommandEntryTerminator(),
};
#define POLICY_COMMANDS emberCommandEntryAction("policy", NULL, (PGM_P)policyCommands, ""),
#endif

#if defined(EMBER_TEST)
#define LOAD_FILE_COMMAND emberCommandEntryAction("load-file", emAfOtaLoadFileCommand, "b", "" ),
#else
#define LOAD_FILE_COMMAND
Exemplo n.º 3
0
  "long ieee address to send the interpan message to",
  "two byte destination PA ID",
  "two byte destination profile ID",
  "two byte options",
  NULL
};

PGM_P const emberCommandTableInterpanGroupCommandArguments[] = {
  "group id to send to",
  "destination pan id",
  "destination profile ID",
  NULL
};

EmberCommandEntry emberCommandTableInterpanCommands[] = {
  emberCommandEntryActionWithDetails("short", interpanCommand, "vvv", "Send an interpan message to a short id.", emberCommandTableInterpanShortCommandArguments),
  emberCommandEntryActionWithDetails("long", interpanLongCommand, "bvvv", "Send an interpan message to a long address (8 byte eui64)", emberCommandTableInterpanLongCommandArguments),
  emberCommandEntryActionWithDetails("group", interpanCommand, "vvv", "send an interpan message to a group id.", emberCommandTableInterpanGroupCommandArguments),
  emberCommandEntryTerminator()
};

PGM_P const emberCommandTableChangekeyLinkCommandArguments[] = {
  "The link key provided as a 16 byte array",
  NULL
};

PGM_P const emberCommandTableChangekeyNetworkCommandArguments[] = {
  "The network key provided as a 16 byte array",
  NULL
};