C# Class WindowsIoT_Raspberry_Pi.MainPage

Inheritance: global::Windows.UI.Xaml.Controls.Page
显示文件 Open project: iamelectron/RaspberryP2_Automation

Public Properties

Property Type Description
Current MainPage
last_received byte[]
lastitem dev_info

Public Methods

Method Description
MainPage ( ) : Rasp_Final
azure_work ( object sender, EventArgs e ) : void
data_received ( byte data_byte ) : void
nrf_send_data ( byte tx_packet, byte device_id, packet_type req_type, bool fullbyte = false ) : void

Send Data Packet

statusbar_string ( string st_status, bool error ) : void

StatusBar message

update_devicelist ( dev_info dev ) : void

Update Device list with latest value

Private Methods

Method Description
Connect ( int connectionId, object target ) : void
CreateBitmapFromElement ( FrameworkElement uielement ) : Task
GetBindingConnector ( int connectionId, object target ) : global::Windows.UI.Xaml.Markup.IComponentConnector
Init_Hard ( ) : void
InitializeComponent ( ) : void
MessageReceived ( DatagramSocket socket, DatagramSocketMessageReceivedEventArgs eventArguments ) : void

MessageReceived event

Timer_Tick ( object sender, object e ) : void
appBarButton_Click ( object sender, RoutedEventArgs e ) : void
autoupdate_timer_Tick ( object sender, object e ) : void
azureMonitor_tick ( object sender, object e ) : void
button_Click ( object sender, RoutedEventArgs e ) : void
deviceList_SelectionChanged ( object sender, SelectionChangedEventArgs e ) : void
do_job ( string addrs, string msg_string, string port_, string local_addr_ ) : void

Receive data and remote address here + pass to controls

init_spi ( ) : Task

init spi

multi_cast ( ) : void

initialize multicast

scan_slave_Checked ( object sender, RoutedEventArgs e ) : void
scan_slave_Unchecked ( object sender, RoutedEventArgs e ) : void
scan_slaves_proc ( object sender, object e ) : void
screenshot_Click ( object sender, RoutedEventArgs e ) : void
send_byte ( byte info ) : void

multi cast byte

send_string ( string info, bool isinternal = false ) : void

multi cast string

toggleSwitch_Toggled ( object sender, RoutedEventArgs e ) : void

Method Details

MainPage() public method

public MainPage ( ) : Rasp_Final
return Rasp_Final

azure_work() public method

public azure_work ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

data_received() public method

public data_received ( byte data_byte ) : void
data_byte byte
return void

nrf_send_data() public method

Send Data Packet
public nrf_send_data ( byte tx_packet, byte device_id, packet_type req_type, bool fullbyte = false ) : void
tx_packet byte 6 byte wide byte packet
device_id byte
req_type packet_type
fullbyte bool
return void

statusbar_string() public method

StatusBar message
public statusbar_string ( string st_status, bool error ) : void
st_status string status message
error bool error or message
return void

update_devicelist() public method

Update Device list with latest value
public update_devicelist ( dev_info dev ) : void
dev dev_info dev_info object
return void

Property Details

Current public_oe static_oe property

public static MainPage,WindowsIoT_Raspberry_Pi Current
return MainPage

last_received public_oe property

public byte[] last_received
return byte[]

lastitem public_oe property

public dev_info lastitem
return dev_info