Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arashsm79/OFMon
/ functions
Functions
33 in github.com/arashsm79/OFMon
⨍
Functions
33
◇
Types & classes
5
↓ 8 callers
Function
now
()
src/main.rs:464
↓ 5 callers
Function
add_f32_to_buf
(val: &f32, buf: &mut [u8], offset: &usize)
src/utils.rs:8
↓ 2 callers
Method
find_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 callers
Function
set_system_time
(time_milis: u64)
src/main.rs:474
↓ 2 callers
Method
store_time
Store the given time to storage
src/ct.rs:230
↓ 1 callers
Function
add_u16_to_buf
(val: &u16, buf: &mut [u8], offset: &usize)
src/utils.rs:1
↓ 1 callers
Function
add_u64_to_buf
(val: &u64, buf: &mut [u8], offset: &usize)
src/utils.rs:15
↓ 1 callers
Method
calculate_energy
( &mut self, powered_adc1: &mut PoweredAdc<ADC1>, crossing: u32, timeout: std:
src/ct.rs:328
↓ 1 callers
Function
configure_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 callers
Function
first_run_validate
()
src/ota.rs:39
↓ 1 callers
Function
init_access_point
Initializes access point with the given ssid and pasword. Authentication method is WPA2Personal.
src/main.rs:229
↓ 1 callers
Function
init_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 callers
Function
init_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 callers
Function
init_web_server
Initilizes the web server and registers some handlers.
src/main.rs:271
↓ 1 callers
Method
log_powerloss
Whenever the esp boots, it restores the previously set RTC and stores that RTC in a log.
src/ct.rs:80
↓ 1 callers
Function
ota_update_from_reader
(mut reader: &mut EspHttpRequest)
src/ota.rs:9
↓ 1 callers
Method
reset
(&mut self)
src/ct.rs:567
↓ 1 callers
Method
reset_storage
Reset everything and clear all files
src/ct.rs:65
↓ 1 callers
Method
retrieve_token
Retrieve the latest token from storage
src/ct.rs:258
↓ 1 callers
Method
save_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 callers
Method
send_powerloss_log
Dump the powerloss log into the given writer and after that delete the log.
src/ct.rs:95
↓ 1 callers
Method
send_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 callers
Method
set_time
(&mut self, time: u64)
src/ct.rs:591
↓ 1 callers
Method
store_token
Store the given token to storage
src/ct.rs:269
↓ 1 callers
Function
templated_webpage
(content: impl AsRef<str>)
src/main.rs:440
↓ 1 callers
Method
update_system_time
Retrieve the latest time from storage and update RTC
src/ct.rs:209
Method
add_assign
(&mut self, rhs: CTReading)
src/ct.rs:573
Function
calc_rms
(samples: &[f32], size: usize)
src/main.rs:460
Method
ct_reading_to_le_bytes
(ct: &CT)
src/ct.rs:313
Method
init
(pins: Pins)
src/ct.rs:468
Function
main
Necessary because of this issue: https://github.com/rust-lang/cargo/issues/9641
build.rs:2
Function
main
()
src/main.rs:77
Method
new
()
src/ct.rs:57