server/adapters/AisTcpProxy-adapter.js
function EventDevAuth (device){
        if (!device.mmsi)  device.mmsi = parseInt (device.devid);
        if (isNaN (device.mmsi)) device.mmsi=String2Hash(device.devid);
        adapter.BroadcastStatic (device);
        if (device.stamp) adapter.BroadcastPos (device);
    }
function EventDevAuth (device){
        if (!device.mmsi)  device.mmsi = parseInt (device.devid);
        if (isNaN (device.mmsi)) device.mmsi=String2Hash(device.devid);
        adapter.BroadcastStatic (device);
        if (device.stamp) adapter.BroadcastPos (device);
    }
function EventDevAuth ( device ) { if ( ! device . mmsi ) device . mmsi = parseInt ( device . devid ) ; if ( isNaN ( device . mmsi ) ) device . mmsi = String2Hash ( device . devid ) ; adapter . BroadcastStatic ( device ) ; if ( device . stamp ) adapter . BroadcastPos ( device ) ; }
if no MMSI avaliable let's try to build a fakeone
if no MMSI avaliable let s try to build a fakeone