Terence Eden on Nostr: OK, any #Arduino folk awake this early? This works: ``` long test = 1688201701; char* ...
OK, any #Arduino folk awake this early?
This works:
```
long test = 1688201701;
char* newCode = totp.getCode( test );
```
This does not:
```
long test = long(epoch);
char* newCode = totp.getCode( test );
```
But when I print the `long(epoch)` it looks identical to the other one.
WTF?
Published at
2023-07-01 09:07:24Event JSON
{
"id": "bff67e18c2eea145987b6eea0746a9aa93cfdb446550fbbcec209dbb2eb26c2a",
"pubkey": "fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"created_at": 1688202444,
"kind": 1,
"tags": [
[
"e",
"7151cc496405eeb2a62da369b2425ea3a078398bc176683dfdd0c0f85e8d23c4",
"wss://relay.mostr.pub",
"reply"
],
[
"t",
"arduino"
],
[
"mostr",
"https://mastodon.social/users/Edent/statuses/110638035414113187"
]
],
"content": "OK, any #Arduino folk awake this early?\n\nThis works:\n```\nlong test = 1688201701;\nchar* newCode = totp.getCode( test );\n```\n\nThis does not:\n```\nlong test = long(epoch);\nchar* newCode = totp.getCode( test );\n```\n\nBut when I print the `long(epoch)` it looks identical to the other one.\n\nWTF?",
"sig": "fd012718c14b29238990499eba0de5e470563048f55b0c21711e4e76d9b17c277b9e684ee8d2dafb0c2c615802cc2344fee7e8f548b5fb8219b0db793eb606eb"
}