This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Fork of libMiMic by Ryo Iizuka

core/NyLPC_cMiMicEnv.c

Committer:
nyatla
Date:
2014-05-29
Revision:
69:8c5f220441f5
Parent:
12:efe841863fc8
Child:
70:2ed02b798004

File content as of revision 69:8c5f220441f5:

#include "NyLPC_cMiMicEnv.h"
#include "../uip/NyLPC_cUipService_protected.h"

const static char* VERSION="MiMic/1.5.0";
const static char* MCU="LPC176x";
const static char* UNKNOWN="UNKNOWN";


static const char* PNAME_LPCXPRESSO1769="LPCXpresso1769";
static const char* PNAME_MBED="mbed";



const char* NyLPC_cMiMicEnv_getStrProperty(NyLPC_TUInt16 i_id)
{
    switch(i_id){
    case NyLPC_cMiMicEnv_VERSION:
        return VERSION;
    case NyLPC_cMiMicEnv_SHORT_NAME:
        switch(*(NyLPC_cUipService_refDeviceName())){
        case 'L':
            return PNAME_LPCXPRESSO1769;
        case 'D':
            return PNAME_MBED;
        default:
            return UNKNOWN;
        }
    case NyLPC_cMiMicEnv_ETHERNET_PHY:
        return NyLPC_cUipService_refDeviceName();
    case NyLPC_cMiMicEnv_MCU_NAME:
        return MCU;
    default:
        return UNKNOWN;
    }
}