public native static int run()

in tools/android-app/app/src/main/java/com/aws/iotfleetwise/Fwe.java [22:110]


    public native static int run(
            AssetManager assetManager,
            String vehicleName,
            String endpointUrl,
            String certificate,
            String privateKey,
            String mqttTopicPrefix);

    /**
     * Stop FWE
     */
    public native static void stop();

    /**
     * Get the OBD PIDs that should be requested according to the campaign.
     * @return Array of OBD PID identifiers to request
     */
    public native static int[] getObdPidsToRequest();

    /**
     * Set the OBD response to a PID request for a given PID.
     * @param pid PID
     * @param response Array of response bytes received from vehicle
     */
    public native static void setObdPidResponse(int pid, int[] response);

    /**
     * Ingest raw CAN message
     * @param interfaceId Interface identifier, as defined in the static config JSON file
     * @param timestamp Timestamp of the message in milliseconds since the epoch, or zero to use the system time
     * @param messageId CAN message ID in Linux SocketCAN format
     * @param data CAN message data
     */
    public native static void ingestCanMessage(String interfaceId, long timestamp, int messageId, byte[] data);

    /**
     * Ingest signal value by name
     * @param timestamp Timestamp of the signal value in milliseconds since the epoch, or zero to use the system time
     * @param name Signal name
     * @param value Signal value
     */
    public native static void ingestSignalValueByName(long timestamp, String name, Object value);

    /**
     * Ingest multiple signal values by name
     * @param timestamp Timestamp of the signal value in milliseconds since the epoch, or zero to use the system time
     * @param values Signal values
     */
    public native static void ingestMultipleSignalValuesByName(long timestamp, Map<String, Object> values);

    /**
     * Set the GPS location
     * @param latitude Latitude
     * @param longitude Longitude
     */
    public native static void setLocation(double latitude, double longitude);

    /**
     * Returns an array of Android Automotive vehicle property info
     * @return vehicle property info, with each member containing an array with 4 values:
     * - Vehicle property ID
     * - Area index
     * - Result index
     * - Signal ID
     */
    public native static int[][] getVehiclePropertyInfo();

    /**
     * Set an Android Automotive vehicle property
     * @param signalId Signal ID
     * @param value Vehicle property value
     */
    public native static void setVehicleProperty(int signalId, Object value);

    /**
     * Get a status summary
     * @return Status summary
     */
    public native static String getStatusSummary();

    /**
     * Get the version
     * @return Version
     */
    public native static String getVersion();

    static {
        System.loadLibrary("aws-iot-fleetwise-edge");
    }