text: /****************************************************************************************************************************
    dynamicParams.h for SAM_DUE_WIFI_GENERIC.ino
    For SAM DUE boards using WIFI_GENERIC Modules/Shields, using much less code to support boards with smaller memory
    
    WiFiManager_Generic_WM_Lite is a library for the Mega, Teensy, SAM DUE, SAMD and STM32 boards 
    (https://github.com/khoih-prog/WiFiManager_Generic_Lite) to enable store Credentials in EEPROM/LittleFS for easy 
    configuration/reconfiguration and autoconnect/autoreconnect of WiFi and other services without Hardcoding.
    
    Built by Khoi Hoang https://github.com/khoih-prog/WiFiManager_Generic_Lite
    Licensed under MIT license 
   *****************************************************************************************************************************/
  
  #ifndef dynamicParams_h
  #define dynamicParams_h
  
  #include "defines.h"
  
  // USE_DYNAMIC_PARAMETERS defined in defined.h
  
  /////////////// Start dynamic Credentials ///////////////
  
  //Defined in <WiFiManager_Generic_Lite_DUE.h>
  /**************************************
    #define MAX_ID_LEN                5
    #define MAX_DISPLAY_NAME_LEN      16
  
    typedef struct
    {
    char id             [MAX_ID_LEN + 1];
    char displayName    [MAX_DISPLAY_NAME_LEN + 1];
    char *pdata;
    uint8_t maxlen;
    } MenuItem;
  **************************************/
  
  #if USE_DYNAMIC_PARAMETERS
  
  #define MAX_BLYNK_SERVER_LEN      34
  #define MAX_BLYNK_TOKEN_LEN       34
  
  char Blynk_Server1 [MAX_BLYNK_SERVER_LEN + 1]  = "account.duckdns.org";
  char Blynk_Token1  [MAX_BLYNK_TOKEN_LEN + 1]   = "token1";
  
  char Blynk_Server2 [MAX_BLYNK_SERVER_LEN + 1]  = "account.ddns.net";
  char Blynk_Token2  [MAX_BLYNK_TOKEN_LEN + 1]   = "token2";
  
  #define MAX_BLYNK_PORT_LEN        6
  char Blynk_Port   [MAX_BLYNK_PORT_LEN + 1]  = "8080";
  
  #define MAX_MQTT_SERVER_LEN      34
  char MQTT_Server  [MAX_MQTT_SERVER_LEN + 1]   = "mqtt.duckdns.org";
  
  MenuItem myMenuItems [] =
  {
    { "sv1", "Blynk Server1", Blynk_Server1,  MAX_BLYNK_SERVER_LEN },
    { "tk1", "Token1",        Blynk_Token1,   MAX_BLYNK_TOKEN_LEN },
    { "sv2", "Blynk Server2", Blynk_Server2,  MAX_BLYNK_SERVER_LEN },
    { "tk2", "Token2",        Blynk_Token2,   MAX_BLYNK_TOKEN_LEN },
    { "prt", "Port",          Blynk_Port,     MAX_BLYNK_PORT_LEN },
    { "mqt", "MQTT Server",   MQTT_Server,    MAX_MQTT_SERVER_LEN },
  };
  
  uint16_t NUM_MENU_ITEMS = sizeof(myMenuItems) / sizeof(MenuItem);  //MenuItemSize;
  
  #else
  
  MenuItem myMenuItems [] = {};
  
  uint16_t NUM_MENU_ITEMS = 0;
  
  #endif    //USE_DYNAMIC_PARAMETERS
  
  
  #endif      //dynamicParams_h
  