@canboat/canboatjs
Version:
Native javascript version of canboat
40 lines • 1.43 kB
TypeScript
/**
* Copyright 2025 Scott Bender <scott@scottbender.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
type SupportedFormat = 'candump3' | 'candump2' | 'candump1' | 'ydraw' | 'actisense' | 'actisense-n2k-ascii' | 'pcdin';
export interface N2kIpGatewayOptions {
app: any;
providerId?: string;
host: string;
port?: number;
reconnectIntervalMs?: number;
format?: SupportedFormat;
actAsCanDevice?: boolean;
useCanName?: boolean;
outEvent?: string;
jsonOutEvent?: string;
analyzerOutEvent?: string;
manufacturerCode?: number;
deviceFunction?: number;
preferredAddress?: number;
productInfo?: any;
configurationInfo?: any;
transmitPGNs?: number[];
disableDefaultTransmitPGNs?: boolean;
[k: string]: any;
}
export declare function N2kIpGateway(this: any, options: N2kIpGatewayOptions): any;
export {};
//# sourceMappingURL=n2kIpGateway.d.ts.map