Newer
Older
#ifndef LIBMOBILE_HILINK_H
#define LIBMOBILE_HILINK_H
#include <stdio.h>
#include <curl/curl.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#define TAG_CONTENT_SIZE 100
#define DEBUG 1
#define DEBUG_RESULT 0
#define ENABLE 1
#define DISABLE 0
struct write_result {
char *data;
int pos;
};
//pci, sc, cell_id, rsrq, rsrp, rssi, sinr, rscp, ecio, mode..
struct json_object *mobile_get_device_signal_hilink();
//DeviceName, SerialNumber, Imei, Imsi, Iccid, Msisdn, HardwareVersion, SoftwareVersion,
//WebUIVersion, MacAddress1, MacAddress2, ProductFamily, Classify, supportmode, workmode
struct json_object *mobile_get_device_info_hilink();
//ConnectionStatus, WifiConnectionStatus, SignalStrength, SignalIcon, CurrentNetworkType, CurrentServiceDomain, RoamingStatus, BatteryStatus
//BatteryLevel, BatteryPercent, simlockStatus, WanIPAddress, WanIPv6Address, PrimaryDns, SecondaryDns, PrimaryIPv6Dns, SecondaryIPv6Dns,
//CurrentWifiUser, TotalWifiUser, currenttotalwifiuser, ServiceStatus, SimStatus, WifiStatus, CurrentNetworkTypeEx, maxsignal, wifiindooronly, wififrequence,
//classify, flymode, cellroam
struct json_object *mobile_get_monitoring_status_hilink();
//CurrentConnectTime, currentUpload, CurrentDownload, CurrentDownloadRate, CurrentUploadRate, TotalUpload, TotalDownload, TotalConnectTime, showtraffic
struct json_object *mobile_get_trafficstatistics_hilink();
struct json_object *mobile_get_provider_hilink();
///SimState, PinOptState, SimPinTimes, number of pin attemps remaining..
struct json_object *mobile_get_pin_status_hilink();
//RoamAutoConnectEnable, MaxIdelTime, ConnectMode, MTU, auto_dial_switch, pdp_always_on
struct json_object *mobile_get_connection_status_hilink();
struct json_object *mobile_get_apn_profiles_hilink();
//UnreadMessage, SmsStorageFull, OnlineUpdateStatus
struct json_object *mobile_get_notification_hilink();
//LocalUnread, LocalInbox, LocalOutbox, LocalDraft, LocalDeleted, SimUnread, SimInbox, SimOutbox
//SimDraft, LocalMax, SimMax, SimUsed, NewMsg
struct json_object *mobile_get_sms_count_hilink();
struct json_object *mobile_get_language_hilink();
struct json_object *mobile_create_apn_profile_hilink(char *name, char *apn_name, char *username, char *password);
struct json_object *mobile_set_apn_profile_hilink(char *name, char *apn_name, char *username, char *password);
struct json_object *mobile_unlock_sim_hilink(char *pin, char *puk);
struct json_object *mobile_delete_apn_profile_hilink(int profile_name_location);
struct json_object *mobile_sms_read_hilink(int sms_location);
struct json_object *mobile_sms_delete_hilink(int sms_location);
struct json_object *mobile_reset_traffic_hilink();
/* mobile_LTE_register has to be called to enbale or disable LTE */
struct json_object *mobile_LTE_register_hilink();
struct json_object *mobile_LTE_enable_hilink();
struct json_object *mobile_LTE_disable_hilink();
struct json_object *mobile_set_connection_type_hilink(int connection_type);
struct json_object *mobile_enable_roaming_hilink();
struct json_object *mobile_disable_roaming_hilink();
/* 00 -> enter pin, 01 -> activate pin, 02 ->disable pin, 03 -> change pin, 04 -> enter puk */
struct json_object *mobile_enable_pin_hilink(char *current_pin);
struct json_object *mobile_disable_pin_hilink(char *current_pin);
struct json_object *mobile_set_pin_hilink(char *current_pin, char *new_pin);
struct json_object *mobile_set_language_hilink(char *language_name);
struct json_object *mobile_connect_network_hilink();
struct json_object *mobile_disconnect_network_hilink();