Logo Search packages:      
Sourcecode: garmindev version File versions  Download package

void IDeviceDefault::uploadMap ( const char *  filename,
uint32_t  size,
const char *  key 
) [virtual]

alternative map uppload API

This will handle just a single file. Map tiles must be concatenated into one big file (gmapsupp.img). If the file containes tiles with locked data an array of 25 ASCII digits has to be passed as key.

mapdata pointer to the gmapsupp.img data array
size the size of the gmapsupp.img data array
key pointer to 25 digit key or 0 for no key

Implements Garmin::IDevice.

Definition at line 75 of file IDeviceDefault.cpp.

References Garmin::exce_t::err, lasterror, Garmin::exce_t::msg, and mutex.

    lasterror = "";
        CMutexLocker lock(mutex);
        _uploadMap(filename, size, key);
    catch(exce_t& e) {
        if(e.err != errBlocked) _release();
        lasterror = "Failed to upload maps. " + e.msg;
        throw (int)e.err;

Generated by  Doxygen 1.6.0   Back to index