refactor: improve storage handling, UI feedback, and defaults
- Update default admin email to admin@datastack.dev - Improve storage flush logic with partial success handling - Enhance CSV download reliability using fetch and Blob - Adjust simulator protocol resolution and timing - Fix date range filtering in data API query
This commit is contained in:
1 parent
40a6855724
commit
3ad9b1d4d2
17 files changed
+281
-78
No files matched your search
@@ -12,7 +12,7 @@ export const SdkSection: React.FC = () => (
|
||||
<span className="text-[var(--text-faint)]"># Auto-loads config.datastack.py from project root</span>{'\n'}
|
||||
<span className="text-[var(--text)]">from datastack import DataStack</span>{'\n\n'}
|
||||
<span className="text-[var(--text)]">client = DataStack()</span>{'\n'}
|
||||
<span className="text-[var(--text)]">client.send({'{'}<span className="text-[var(--accent)]">"event"</span>: <span className="text-[var(--accent)]">"package_received"</span>{'}'})</span>{'\n'}
|
||||
<span className="text-[var(--text)]">client.send({'{'}<span className="text-[var(--accent)]">"event_type"</span>: <span className="text-[var(--accent)]">"sensor_telemetry"</span>, <span className="text-[var(--accent)]">"temperature"</span>: 24.8, <span className="text-[var(--accent)]">"status"</span>: <span className="text-[var(--accent)]">"NOMINAL"</span>{'}'})</span>{'\n'}
|
||||
<span className="text-[var(--text)]">client.send_file(<span className="text-[var(--accent)]">"telemetry_batch.csv"</span>)</span>{'\n'}
|
||||
<span className="text-[var(--text)]">client.disconnect()</span>
|
||||
</CodeBlock>
|
||||
|
||||
Reference in new issue
Block a user