MCPcopy Create free account

hub / github.com/arashsm79/OFMon / functions

Functions33 in github.com/arashsm79/OFMon

↓ 8 callersFunctionnow
()
src/main.rs:464
↓ 5 callersFunctionadd_f32_to_buf
(val: &f32, buf: &mut [u8], offset: &usize)
src/utils.rs:8
↓ 2 callersMethodfind_newest_readings_shard_num
Find the newest readings shard id under "/littlefs/ct_readings" files are saved with a number as their filename. here we iterate through all of them
src/ct.rs:123
↓ 2 callersFunctionset_system_time
(time_milis: u64)
src/main.rs:474
↓ 2 callersMethodstore_time
Store the given time to storage
src/ct.rs:230
↓ 1 callersFunctionadd_u16_to_buf
(val: &u16, buf: &mut [u8], offset: &usize)
src/utils.rs:1
↓ 1 callersFunctionadd_u64_to_buf
(val: &u64, buf: &mut [u8], offset: &usize)
src/utils.rs:15
↓ 1 callersMethodcalculate_energy
( &mut self, powered_adc1: &mut PoweredAdc<ADC1>, crossing: u32, timeout: std:
src/ct.rs:328
↓ 1 callersFunctionconfigure_access_point_ssid
Sets the value of `ap_ssid` as a combination of this device MAC address and a custom string.
src/main.rs:207
↓ 1 callersFunctionfirst_run_validate
()
src/ota.rs:39
↓ 1 callersFunctioninit_access_point
Initializes access point with the given ssid and pasword. Authentication method is WPA2Personal.
src/main.rs:229
↓ 1 callersFunctioninit_littlefs_storage
Initializes a littlefs file system. A partition with name `LITTLEFS_PARTITION_NAME` has to be specified in the partition table csv file.
src/main.rs:169
↓ 1 callersFunctioninit_nvs_storage
Initializes a nvs file system. A partition with name `NVS_PARTITION_NAME` has to be specified in the partition table csv file.
src/main.rs:199
↓ 1 callersFunctioninit_web_server
Initilizes the web server and registers some handlers.
src/main.rs:271
↓ 1 callersMethodlog_powerloss
Whenever the esp boots, it restores the previously set RTC and stores that RTC in a log.
src/ct.rs:80
↓ 1 callersFunctionota_update_from_reader
(mut reader: &mut EspHttpRequest)
src/ota.rs:9
↓ 1 callersMethodreset
(&mut self)
src/ct.rs:567
↓ 1 callersMethodreset_storage
Reset everything and clear all files
src/ct.rs:65
↓ 1 callersMethodretrieve_token
Retrieve the latest token from storage
src/ct.rs:258
↓ 1 callersMethodsave_to_storage
Save sensor readings to storage. this function does not do any synchronization. If something like mutex is needed, you must deal with it before calli
src/ct.rs:159
↓ 1 callersMethodsend_powerloss_log
Dump the powerloss log into the given writer and after that delete the log.
src/ct.rs:95
↓ 1 callersMethodsend_readings_shards
Send reading shards one by one into this writer. before deleting a shard, we make sure that he have flushed thr writer.
src/ct.rs:285
↓ 1 callersMethodset_time
(&mut self, time: u64)
src/ct.rs:591
↓ 1 callersMethodstore_token
Store the given token to storage
src/ct.rs:269
↓ 1 callersFunctiontemplated_webpage
(content: impl AsRef<str>)
src/main.rs:440
↓ 1 callersMethodupdate_system_time
Retrieve the latest time from storage and update RTC
src/ct.rs:209
Methodadd_assign
(&mut self, rhs: CTReading)
src/ct.rs:573
Functioncalc_rms
(samples: &[f32], size: usize)
src/main.rs:460
Methodct_reading_to_le_bytes
(ct: &CT)
src/ct.rs:313
Methodinit
(pins: Pins)
src/ct.rs:468
Functionmain
Necessary because of this issue: https://github.com/rust-lang/cargo/issues/9641
build.rs:2
Functionmain
()
src/main.rs:77
Methodnew
()
src/ct.rs:57